pg_curl

pg_curl

Run curl actions for data transfer in URL syntax

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
4090
pg_curl
pg_curl
2.4.5
UTIL
MIT
C
AttributeHas BinaryHas LibraryNeed LoadHas DDLRelocatableTrusted
--s-d-r
No
Yes
No
Yes
yes
no
Relationships
See Also
http
pg_net
pgjwt
gzip
bzip
zstd
pgjq
pg_smtp_client

Packages

TypeRepoVersionPG Major AvailabilityPackage PatternDependencies
EL
PIGSTY
2.4.5
18
17
16
15
14
13
pg_curl_$v*-
Debian
PIGSTY
2.4.5
18
17
16
15
14
13
postgresql-$v-pg-curl-
Linux / PGPG18PG17PG16PG15PG14PG13
el8.x86_64
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
el8.aarch64
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
el9.x86_64
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
el9.aarch64
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
el10.x86_64
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
el10.aarch64
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
d12.x86_64
MISS
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
d12.aarch64
MISS
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
d13.x86_64
MISS
MISS
MISS
MISS
MISS
MISS
d13.aarch64
MISS
MISS
MISS
MISS
MISS
MISS
u22.x86_64
MISS
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
u22.aarch64
MISS
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
u24.x86_64
MISS
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
u24.aarch64
MISS
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
PIGSTY 2.4.5
PackageVersionOSORGSIZEFile URL
pg_curl_182.4.5el8.x86_64pigsty63.6 KiBpg_curl_18-2.4.5-2PIGSTY.el8.x86_64.rpm
pg_curl_182.4.4el8.x86_64pgdg43.8 KiBpg_curl_18-2.4.4-1PGDG.rhel8.x86_64.rpm
pg_curl_182.4.5el8.aarch64pigsty60.2 KiBpg_curl_18-2.4.5-2PIGSTY.el8.aarch64.rpm
pg_curl_182.4.4el8.aarch64pgdg42.1 KiBpg_curl_18-2.4.4-1PGDG.rhel8.aarch64.rpm
pg_curl_182.4.5el9.x86_64pigsty54.3 KiBpg_curl_18-2.4.5-2PIGSTY.el9.x86_64.rpm
pg_curl_182.4.4el9.x86_64pgdg45.5 KiBpg_curl_18-2.4.4-1PGDG.rhel9.x86_64.rpm
pg_curl_182.4.5el9.aarch64pigsty53.2 KiBpg_curl_18-2.4.5-2PIGSTY.el9.aarch64.rpm
pg_curl_182.4.4el9.aarch64pgdg44.0 KiBpg_curl_18-2.4.4-1PGDG.rhel9.aarch64.rpm
pg_curl_182.4.5el10.x86_64pigsty54.5 KiBpg_curl_18-2.4.5-2PIGSTY.el10.x86_64.rpm
pg_curl_182.4.4el10.x86_64pgdg46.5 KiBpg_curl_18-2.4.4-1PGDG.rhel10.x86_64.rpm
pg_curl_182.4.5el10.aarch64pigsty54.1 KiBpg_curl_18-2.4.5-2PIGSTY.el10.aarch64.rpm
pg_curl_182.4.4el10.aarch64pgdg45.5 KiBpg_curl_18-2.4.4-1PGDG.rhel10.aarch64.rpm
PackageVersionOSORGSIZEFile URL
pg_curl_172.4.5el8.x86_64pigsty63.6 KiBpg_curl_17-2.4.5-2PIGSTY.el8.x86_64.rpm
pg_curl_172.4.4el8.x86_64pgdg43.8 KiBpg_curl_17-2.4.4-1PGDG.rhel8.x86_64.rpm
pg_curl_172.4.3el8.x86_64pgdg43.7 KiBpg_curl_17-2.4.3-1PGDG.rhel8.x86_64.rpm
pg_curl_172.4.5el8.aarch64pigsty60.3 KiBpg_curl_17-2.4.5-2PIGSTY.el8.aarch64.rpm
pg_curl_172.4.4el8.aarch64pgdg42.1 KiBpg_curl_17-2.4.4-1PGDG.rhel8.aarch64.rpm
pg_curl_172.4.3el8.aarch64pgdg41.9 KiBpg_curl_17-2.4.3-1PGDG.rhel8.aarch64.rpm
pg_curl_172.4.5el9.x86_64pigsty54.2 KiBpg_curl_17-2.4.5-2PIGSTY.el9.x86_64.rpm
pg_curl_172.4.4el9.x86_64pgdg45.6 KiBpg_curl_17-2.4.4-1PGDG.rhel9.x86_64.rpm
pg_curl_172.4.3el9.x86_64pgdg45.6 KiBpg_curl_17-2.4.3-1PGDG.rhel9.x86_64.rpm
pg_curl_172.4.5el9.aarch64pigsty53.1 KiBpg_curl_17-2.4.5-2PIGSTY.el9.aarch64.rpm
pg_curl_172.4.4el9.aarch64pgdg43.8 KiBpg_curl_17-2.4.4-1PGDG.rhel9.aarch64.rpm
pg_curl_172.4.3el9.aarch64pgdg44.0 KiBpg_curl_17-2.4.3-1PGDG.rhel9.aarch64.rpm
pg_curl_172.4.5el10.x86_64pigsty54.6 KiBpg_curl_17-2.4.5-2PIGSTY.el10.x86_64.rpm
pg_curl_172.4.4el10.x86_64pgdg46.6 KiBpg_curl_17-2.4.4-1PGDG.rhel10.x86_64.rpm
pg_curl_172.4.3el10.x86_64pgdg46.4 KiBpg_curl_17-2.4.3-2PGDG.rhel10.x86_64.rpm
pg_curl_172.4.5el10.aarch64pigsty54.1 KiBpg_curl_17-2.4.5-2PIGSTY.el10.aarch64.rpm
pg_curl_172.4.4el10.aarch64pgdg45.2 KiBpg_curl_17-2.4.4-1PGDG.rhel10.aarch64.rpm
pg_curl_172.4.3el10.aarch64pgdg45.0 KiBpg_curl_17-2.4.3-2PGDG.rhel10.aarch64.rpm
postgresql-17-pg-curl2.4.5d12.x86_64pigsty99.8 KiBpostgresql-17-pg-curl_2.4.5-1PIGSTY~bookworm_amd64.deb
postgresql-17-pg-curl2.4.5d12.aarch64pigsty98.5 KiBpostgresql-17-pg-curl_2.4.5-1PIGSTY~bookworm_arm64.deb
postgresql-17-pg-curl2.4.5u22.x86_64pigsty117.3 KiBpostgresql-17-pg-curl_2.4.5-1PIGSTY~jammy_amd64.deb
postgresql-17-pg-curl2.4.5u22.aarch64pigsty115.6 KiBpostgresql-17-pg-curl_2.4.5-1PIGSTY~jammy_arm64.deb
postgresql-17-pg-curl2.4.5u24.x86_64pigsty108.2 KiBpostgresql-17-pg-curl_2.4.5-1PIGSTY~noble_amd64.deb
postgresql-17-pg-curl2.4.5u24.aarch64pigsty107.7 KiBpostgresql-17-pg-curl_2.4.5-1PIGSTY~noble_arm64.deb
PackageVersionOSORGSIZEFile URL
pg_curl_162.4.5el8.x86_64pigsty63.6 KiBpg_curl_16-2.4.5-2PIGSTY.el8.x86_64.rpm
pg_curl_162.4.4el8.x86_64pgdg43.8 KiBpg_curl_16-2.4.4-1PGDG.rhel8.x86_64.rpm
pg_curl_162.4.3el8.x86_64pgdg43.8 KiBpg_curl_16-2.4.3-1PGDG.rhel8.x86_64.rpm
pg_curl_162.4.5el8.aarch64pigsty60.3 KiBpg_curl_16-2.4.5-2PIGSTY.el8.aarch64.rpm
pg_curl_162.4.4el8.aarch64pgdg42.1 KiBpg_curl_16-2.4.4-1PGDG.rhel8.aarch64.rpm
pg_curl_162.4.3el8.aarch64pgdg41.9 KiBpg_curl_16-2.4.3-1PGDG.rhel8.aarch64.rpm
pg_curl_162.4.5el9.x86_64pigsty54.7 KiBpg_curl_16-2.4.5-2PIGSTY.el9.x86_64.rpm
pg_curl_162.4.4el9.x86_64pgdg45.7 KiBpg_curl_16-2.4.4-1PGDG.rhel9.x86_64.rpm
pg_curl_162.4.3el9.x86_64pgdg45.5 KiBpg_curl_16-2.4.3-1PGDG.rhel9.x86_64.rpm
pg_curl_162.4.5el9.aarch64pigsty53.1 KiBpg_curl_16-2.4.5-2PIGSTY.el9.aarch64.rpm
pg_curl_162.4.4el9.aarch64pgdg44.0 KiBpg_curl_16-2.4.4-1PGDG.rhel9.aarch64.rpm
pg_curl_162.4.3el9.aarch64pgdg44.1 KiBpg_curl_16-2.4.3-1PGDG.rhel9.aarch64.rpm
pg_curl_162.4.5el10.x86_64pigsty54.7 KiBpg_curl_16-2.4.5-2PIGSTY.el10.x86_64.rpm
pg_curl_162.4.4el10.x86_64pgdg46.6 KiBpg_curl_16-2.4.4-1PGDG.rhel10.x86_64.rpm
pg_curl_162.4.3el10.x86_64pgdg46.4 KiBpg_curl_16-2.4.3-2PGDG.rhel10.x86_64.rpm
pg_curl_162.4.5el10.aarch64pigsty54.1 KiBpg_curl_16-2.4.5-2PIGSTY.el10.aarch64.rpm
pg_curl_162.4.4el10.aarch64pgdg45.2 KiBpg_curl_16-2.4.4-1PGDG.rhel10.aarch64.rpm
pg_curl_162.4.3el10.aarch64pgdg45.0 KiBpg_curl_16-2.4.3-2PGDG.rhel10.aarch64.rpm
postgresql-16-pg-curl2.4.5d12.x86_64pigsty99.9 KiBpostgresql-16-pg-curl_2.4.5-1PIGSTY~bookworm_amd64.deb
postgresql-16-pg-curl2.4.5d12.aarch64pigsty98.5 KiBpostgresql-16-pg-curl_2.4.5-1PIGSTY~bookworm_arm64.deb
postgresql-16-pg-curl2.4.5u22.x86_64pigsty117.3 KiBpostgresql-16-pg-curl_2.4.5-1PIGSTY~jammy_amd64.deb
postgresql-16-pg-curl2.4.5u22.aarch64pigsty115.6 KiBpostgresql-16-pg-curl_2.4.5-1PIGSTY~jammy_arm64.deb
postgresql-16-pg-curl2.4.5u24.x86_64pigsty108.1 KiBpostgresql-16-pg-curl_2.4.5-1PIGSTY~noble_amd64.deb
postgresql-16-pg-curl2.4.5u24.aarch64pigsty107.8 KiBpostgresql-16-pg-curl_2.4.5-1PIGSTY~noble_arm64.deb
PackageVersionOSORGSIZEFile URL
pg_curl_152.4.5el8.x86_64pigsty63.5 KiBpg_curl_15-2.4.5-2PIGSTY.el8.x86_64.rpm
pg_curl_152.4.4el8.x86_64pgdg43.8 KiBpg_curl_15-2.4.4-1PGDG.rhel8.x86_64.rpm
pg_curl_152.4.3el8.x86_64pgdg43.7 KiBpg_curl_15-2.4.3-1PGDG.rhel8.x86_64.rpm
pg_curl_152.4.5el8.aarch64pigsty60.3 KiBpg_curl_15-2.4.5-2PIGSTY.el8.aarch64.rpm
pg_curl_152.4.4el8.aarch64pgdg42.1 KiBpg_curl_15-2.4.4-1PGDG.rhel8.aarch64.rpm
pg_curl_152.4.3el8.aarch64pgdg41.9 KiBpg_curl_15-2.4.3-1PGDG.rhel8.aarch64.rpm
pg_curl_152.4.5el9.x86_64pigsty54.3 KiBpg_curl_15-2.4.5-2PIGSTY.el9.x86_64.rpm
pg_curl_152.4.4el9.x86_64pgdg45.6 KiBpg_curl_15-2.4.4-1PGDG.rhel9.x86_64.rpm
pg_curl_152.4.3el9.x86_64pgdg45.6 KiBpg_curl_15-2.4.3-1PGDG.rhel9.x86_64.rpm
pg_curl_152.4.5el9.aarch64pigsty53.1 KiBpg_curl_15-2.4.5-2PIGSTY.el9.aarch64.rpm
pg_curl_152.4.4el9.aarch64pgdg44.0 KiBpg_curl_15-2.4.4-1PGDG.rhel9.aarch64.rpm
pg_curl_152.4.3el9.aarch64pgdg44.0 KiBpg_curl_15-2.4.3-1PGDG.rhel9.aarch64.rpm
pg_curl_152.4.5el10.x86_64pigsty55.0 KiBpg_curl_15-2.4.5-2PIGSTY.el10.x86_64.rpm
pg_curl_152.4.4el10.x86_64pgdg46.5 KiBpg_curl_15-2.4.4-1PGDG.rhel10.x86_64.rpm
pg_curl_152.4.3el10.x86_64pgdg46.4 KiBpg_curl_15-2.4.3-2PGDG.rhel10.x86_64.rpm
pg_curl_152.4.5el10.aarch64pigsty53.7 KiBpg_curl_15-2.4.5-2PIGSTY.el10.aarch64.rpm
pg_curl_152.4.4el10.aarch64pgdg45.5 KiBpg_curl_15-2.4.4-1PGDG.rhel10.aarch64.rpm
pg_curl_152.4.3el10.aarch64pgdg45.4 KiBpg_curl_15-2.4.3-2PGDG.rhel10.aarch64.rpm
postgresql-15-pg-curl2.4.5d12.x86_64pigsty99.6 KiBpostgresql-15-pg-curl_2.4.5-1PIGSTY~bookworm_amd64.deb
postgresql-15-pg-curl2.4.5d12.aarch64pigsty98.1 KiBpostgresql-15-pg-curl_2.4.5-1PIGSTY~bookworm_arm64.deb
postgresql-15-pg-curl2.4.5u22.x86_64pigsty117.3 KiBpostgresql-15-pg-curl_2.4.5-1PIGSTY~jammy_amd64.deb
postgresql-15-pg-curl2.4.5u22.aarch64pigsty115.7 KiBpostgresql-15-pg-curl_2.4.5-1PIGSTY~jammy_arm64.deb
postgresql-15-pg-curl2.4.5u24.x86_64pigsty107.8 KiBpostgresql-15-pg-curl_2.4.5-1PIGSTY~noble_amd64.deb
postgresql-15-pg-curl2.4.5u24.aarch64pigsty107.7 KiBpostgresql-15-pg-curl_2.4.5-1PIGSTY~noble_arm64.deb
PackageVersionOSORGSIZEFile URL
pg_curl_142.4.5el8.x86_64pigsty63.5 KiBpg_curl_14-2.4.5-2PIGSTY.el8.x86_64.rpm
pg_curl_142.4.4el8.x86_64pgdg43.8 KiBpg_curl_14-2.4.4-1PGDG.rhel8.x86_64.rpm
pg_curl_142.4.3el8.x86_64pgdg43.7 KiBpg_curl_14-2.4.3-1PGDG.rhel8.x86_64.rpm
pg_curl_142.4.5el8.aarch64pigsty60.2 KiBpg_curl_14-2.4.5-2PIGSTY.el8.aarch64.rpm
pg_curl_142.4.4el8.aarch64pgdg42.1 KiBpg_curl_14-2.4.4-1PGDG.rhel8.aarch64.rpm
pg_curl_142.4.3el8.aarch64pgdg41.9 KiBpg_curl_14-2.4.3-1PGDG.rhel8.aarch64.rpm
pg_curl_142.4.5el9.x86_64pigsty54.6 KiBpg_curl_14-2.4.5-2PIGSTY.el9.x86_64.rpm
pg_curl_142.4.4el9.x86_64pgdg45.5 KiBpg_curl_14-2.4.4-1PGDG.rhel9.x86_64.rpm
pg_curl_142.4.3el9.x86_64pgdg45.5 KiBpg_curl_14-2.4.3-1PGDG.rhel9.x86_64.rpm
pg_curl_142.4.5el9.aarch64pigsty53.1 KiBpg_curl_14-2.4.5-2PIGSTY.el9.aarch64.rpm
pg_curl_142.4.4el9.aarch64pgdg43.8 KiBpg_curl_14-2.4.4-1PGDG.rhel9.aarch64.rpm
pg_curl_142.4.3el9.aarch64pgdg44.0 KiBpg_curl_14-2.4.3-1PGDG.rhel9.aarch64.rpm
pg_curl_142.4.5el10.x86_64pigsty55.0 KiBpg_curl_14-2.4.5-2PIGSTY.el10.x86_64.rpm
pg_curl_142.4.4el10.x86_64pgdg46.5 KiBpg_curl_14-2.4.4-1PGDG.rhel10.x86_64.rpm
pg_curl_142.4.3el10.x86_64pgdg46.4 KiBpg_curl_14-2.4.3-2PGDG.rhel10.x86_64.rpm
pg_curl_142.4.5el10.aarch64pigsty54.1 KiBpg_curl_14-2.4.5-2PIGSTY.el10.aarch64.rpm
pg_curl_142.4.4el10.aarch64pgdg45.5 KiBpg_curl_14-2.4.4-1PGDG.rhel10.aarch64.rpm
pg_curl_142.4.3el10.aarch64pgdg45.4 KiBpg_curl_14-2.4.3-2PGDG.rhel10.aarch64.rpm
postgresql-14-pg-curl2.4.5d12.x86_64pigsty99.6 KiBpostgresql-14-pg-curl_2.4.5-1PIGSTY~bookworm_amd64.deb
postgresql-14-pg-curl2.4.5d12.aarch64pigsty98.0 KiBpostgresql-14-pg-curl_2.4.5-1PIGSTY~bookworm_arm64.deb
postgresql-14-pg-curl2.4.5u22.x86_64pigsty117.4 KiBpostgresql-14-pg-curl_2.4.5-1PIGSTY~jammy_amd64.deb
postgresql-14-pg-curl2.4.5u22.aarch64pigsty115.7 KiBpostgresql-14-pg-curl_2.4.5-1PIGSTY~jammy_arm64.deb
postgresql-14-pg-curl2.4.5u24.x86_64pigsty107.8 KiBpostgresql-14-pg-curl_2.4.5-1PIGSTY~noble_amd64.deb
postgresql-14-pg-curl2.4.5u24.aarch64pigsty107.5 KiBpostgresql-14-pg-curl_2.4.5-1PIGSTY~noble_arm64.deb
PackageVersionOSORGSIZEFile URL
pg_curl_132.4.5el8.x86_64pigsty62.8 KiBpg_curl_13-2.4.5-2PIGSTY.el8.x86_64.rpm
pg_curl_132.4.4el8.x86_64pgdg43.1 KiBpg_curl_13-2.4.4-1PGDG.rhel8.x86_64.rpm
pg_curl_132.4.3el8.x86_64pgdg43.0 KiBpg_curl_13-2.4.3-1PGDG.rhel8.x86_64.rpm
pg_curl_132.4.5el8.aarch64pigsty60.0 KiBpg_curl_13-2.4.5-2PIGSTY.el8.aarch64.rpm
pg_curl_132.4.4el8.aarch64pgdg42.0 KiBpg_curl_13-2.4.4-1PGDG.rhel8.aarch64.rpm
pg_curl_132.4.3el8.aarch64pgdg41.9 KiBpg_curl_13-2.4.3-1PGDG.rhel8.aarch64.rpm
pg_curl_132.4.5el9.x86_64pigsty54.4 KiBpg_curl_13-2.4.5-2PIGSTY.el9.x86_64.rpm
pg_curl_132.4.4el9.x86_64pgdg45.6 KiBpg_curl_13-2.4.4-1PGDG.rhel9.x86_64.rpm
pg_curl_132.4.3el9.x86_64pgdg45.5 KiBpg_curl_13-2.4.3-1PGDG.rhel9.x86_64.rpm
pg_curl_132.4.5el9.aarch64pigsty53.4 KiBpg_curl_13-2.4.5-2PIGSTY.el9.aarch64.rpm
pg_curl_132.4.4el9.aarch64pgdg44.2 KiBpg_curl_13-2.4.4-1PGDG.rhel9.aarch64.rpm
pg_curl_132.4.3el9.aarch64pgdg44.1 KiBpg_curl_13-2.4.3-1PGDG.rhel9.aarch64.rpm
pg_curl_132.4.5el10.x86_64pigsty55.0 KiBpg_curl_13-2.4.5-2PIGSTY.el10.x86_64.rpm
pg_curl_132.4.4el10.x86_64pgdg46.3 KiBpg_curl_13-2.4.4-1PGDG.rhel10.x86_64.rpm
pg_curl_132.4.3el10.x86_64pgdg46.2 KiBpg_curl_13-2.4.3-2PGDG.rhel10.x86_64.rpm
pg_curl_132.4.5el10.aarch64pigsty54.1 KiBpg_curl_13-2.4.5-2PIGSTY.el10.aarch64.rpm
pg_curl_132.4.4el10.aarch64pgdg45.5 KiBpg_curl_13-2.4.4-1PGDG.rhel10.aarch64.rpm
pg_curl_132.4.3el10.aarch64pgdg45.4 KiBpg_curl_13-2.4.3-2PGDG.rhel10.aarch64.rpm
postgresql-13-pg-curl2.4.5d12.x86_64pigsty100.1 KiBpostgresql-13-pg-curl_2.4.5-1PIGSTY~bookworm_amd64.deb
postgresql-13-pg-curl2.4.5d12.aarch64pigsty98.4 KiBpostgresql-13-pg-curl_2.4.5-1PIGSTY~bookworm_arm64.deb
postgresql-13-pg-curl2.4.5u22.x86_64pigsty117.1 KiBpostgresql-13-pg-curl_2.4.5-1PIGSTY~jammy_amd64.deb
postgresql-13-pg-curl2.4.5u22.aarch64pigsty115.2 KiBpostgresql-13-pg-curl_2.4.5-1PIGSTY~jammy_arm64.deb
postgresql-13-pg-curl2.4.5u24.x86_64pigsty107.5 KiBpostgresql-13-pg-curl_2.4.5-1PIGSTY~noble_amd64.deb
postgresql-13-pg-curl2.4.5u24.aarch64pigsty107.5 KiBpostgresql-13-pg-curl_2.4.5-1PIGSTY~noble_arm64.deb

Source

pig build get pg_curl; # get pg_curl source code
pig build dep pg_curl; # install build dependencies
pig build pkg pg_curl; # build extension rpm or deb
pig build ext pg_curl; # build extension rpms

Install

To add the required PGDG / PIGSTY upstream repository, use:

pig repo add pgsql -u   # add PGDG + Pigsty repo and update cache (leave existing repos)

Install this extension with:

pig ext install pg_curl; # install by extension name, for the current active PG version
pig ext install pg_curl; # install via package alias, for the active PG version
pig ext install pg_curl -v 18;   # install for PG 18
pig ext install pg_curl -v 17;   # install for PG 17
pig ext install pg_curl -v 16;   # install for PG 16
pig ext install pg_curl -v 15;   # install for PG 15
pig ext install pg_curl -v 14;   # install for PG 14
pig ext install pg_curl -v 13;   # install for PG 13

Create this extension with:

CREATE EXTENSION pg_curl;

Usage

CREATE EXTENSION pg_curl;

Perform HTTP Get:

-- wrap curl http get
CREATE OR REPLACE FUNCTION get(url TEXT) RETURNS TEXT LANGUAGE SQL AS $BODY$
WITH s AS (SELECT
               curl_easy_reset(),
               curl_easy_setopt_url(url),
               curl_easy_perform(),
               curl_easy_getinfo_data_in()
) SELECT convert_from(curl_easy_getinfo_data_in, 'utf-8') FROM s;
$BODY$;


SELECT get('https://www.postgresql.org/');

Perform Email SMTP:

CREATE OR REPLACE FUNCTION email(url TEXT, username TEXT, password TEXT, subject TEXT, sender TEXT, recipient TEXT, body TEXT, type TEXT) RETURNS TEXT LANGUAGE SQL AS $BODY$
    WITH s AS (SELECT
        curl_easy_reset(),
        curl_easy_setopt_mail_from(sender),
        curl_easy_setopt_password(password),
        curl_easy_setopt_url(url),
        curl_easy_setopt_username(username),
        curl_header_append('From', sender),
        curl_header_append('Subject', subject),
        curl_header_append('To', recipient),
        curl_mime_data(body, type:=type),
        curl_recipient_append(recipient),
        curl_easy_perform(),
        curl_easy_getinfo_header_in()
    ) SELECT curl_easy_getinfo_header_in FROM s;
$BODY$;

Perform FTP download:

CREATE OR REPLACE FUNCTION download(url TEXT, username TEXT, password TEXT) RETURNS BYTEA LANGUAGE SQL AS $BODY$
    WITH s AS (SELECT
        curl_easy_reset(),
        curl_easy_setopt_password(password),
        curl_easy_setopt_url(url),
        curl_easy_setopt_username(username),
        curl_easy_perform(),
        curl_easy_getinfo_data_in()
    ) SELECT curl_easy_getinfo_data_in FROM s;
$BODY$;
Last updated on