From 6ba6ac39f0e1f69856313c4465e27ca965d9e9ea Mon Sep 17 00:00:00 2001 From: Jim Mlodgenski Date: Wed, 17 Jun 2026 13:03:13 -0700 Subject: [PATCH 1/2] Document PostgreSQL 18 support in README CI already builds and tests against REL_18_STABLE, and the full regression suite passes on PG18. Update the supported-versions list to reflect that pg_tle 1.5.2 supports PostgreSQL major versions 12 to 18. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 8ce3275..cb6a8bd 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,8 @@ There are examples for writing TLEs in several languages, including: ## Supported PostgreSQL versions +`pg_tle` 1.5.2 supports PostgreSQL major versions 12 to 18. + `pg_tle` 1.5.0 supports PostgreSQL major versions 12 to 17. `pg_tle` 1.4.0 supports PostgreSQL major versions 11 to 17. From 79adbedbe2303f7983c5118e5703cd9ac7ea6ca4 Mon Sep 17 00:00:00 2001 From: Jim Mlodgenski Date: Wed, 17 Jun 2026 13:03:14 -0700 Subject: [PATCH 2/2] Apply pgindent to source files Reformat block comments to satisfy the pgindent check that CI runs against the master PostgreSQL branch. No functional changes. --- include/compatibility.h | 6 ++++-- src/clientauth.c | 3 ++- src/tleextension.c | 22 +++++++++++----------- 3 files changed, 17 insertions(+), 14 deletions(-) diff --git a/include/compatibility.h b/include/compatibility.h index 4662b41..35587d5 100644 --- a/include/compatibility.h +++ b/include/compatibility.h @@ -131,8 +131,10 @@ #define GETOBJECTDESCRIPTION(a) getObjectDescription(a, false) #endif -/* if prior to pg13, upgrade to newer macro defs. - * This also adds support for PG_FINALLY */ +/* + * if prior to pg13, upgrade to newer macro defs. + * This also adds support for PG_FINALLY + */ #if PG_VERSION_NUM < 130000 #ifdef PG_TRY #undef PG_TRY diff --git a/src/clientauth.c b/src/clientauth.c index 5dc9537..1127d1a 100644 --- a/src/clientauth.c +++ b/src/clientauth.c @@ -519,7 +519,8 @@ clientauth_launcher_main(Datum arg) } } -/* Run the user's functions. +/* + * Run the user's functions. * * This procedure should not do any transaction management (other than opening an SPI connection) * or shared memory accesses. diff --git a/src/tleextension.c b/src/tleextension.c index 68c7d33..0b920c4 100644 --- a/src/tleextension.c +++ b/src/tleextension.c @@ -1888,11 +1888,11 @@ find_install_path(List *evi_list, ExtensionVersionInfo *evi_target, } /* -* Figures out which script(s) we need to run to install the desired -* version of the extension. If we do not have a script that directly -* does what is needed, we try to find a sequence of update scripts that -* will get us there. -*/ + * Figures out which script(s) we need to run to install the desired + * version of the extension. If we do not have a script that directly + * does what is needed, we try to find a sequence of update scripts that + * will get us there. + */ static List * find_versions_to_apply(ExtensionControlFile *pcontrol, const char **versionName) { @@ -5207,12 +5207,12 @@ pg_tle_set_default_version(PG_FUNCTION_ARGS) } /* -* Convert text array to list of strings. -* -* Note: the resulting list of strings is pallocated here. -* -* This is borrowed from pg_subscription.c -*/ + * Convert text array to list of strings. + * + * Note: the resulting list of strings is pallocated here. + * + * This is borrowed from pg_subscription.c + */ static List * textarray_to_stringlist(ArrayType *textarray) {