Skip to content

Commit e90d907

Browse files
Document PostgreSQL 18 support and apply pgindent (#309)
* 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. * Apply pgindent to source files Reformat block comments to satisfy the pgindent check that CI runs against the master PostgreSQL branch. No functional changes.
1 parent 62e8bbd commit e90d907

4 files changed

Lines changed: 19 additions & 14 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ There are examples for writing TLEs in several languages, including:
3535

3636
## Supported PostgreSQL versions
3737

38+
`pg_tle` 1.5.2 supports PostgreSQL major versions 12 to 18.
39+
3840
`pg_tle` 1.5.0 supports PostgreSQL major versions 12 to 17.
3941

4042
`pg_tle` 1.4.0 supports PostgreSQL major versions 11 to 17.

include/compatibility.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,10 @@
131131
#define GETOBJECTDESCRIPTION(a) getObjectDescription(a, false)
132132
#endif
133133

134-
/* if prior to pg13, upgrade to newer macro defs.
135-
* This also adds support for PG_FINALLY */
134+
/*
135+
* if prior to pg13, upgrade to newer macro defs.
136+
* This also adds support for PG_FINALLY
137+
*/
136138
#if PG_VERSION_NUM < 130000
137139
#ifdef PG_TRY
138140
#undef PG_TRY

src/clientauth.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,8 @@ clientauth_launcher_main(Datum arg)
519519
}
520520
}
521521

522-
/* Run the user's functions.
522+
/*
523+
* Run the user's functions.
523524
*
524525
* This procedure should not do any transaction management (other than opening an SPI connection)
525526
* or shared memory accesses.

src/tleextension.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1888,11 +1888,11 @@ find_install_path(List *evi_list, ExtensionVersionInfo *evi_target,
18881888
}
18891889

18901890
/*
1891-
* Figures out which script(s) we need to run to install the desired
1892-
* version of the extension. If we do not have a script that directly
1893-
* does what is needed, we try to find a sequence of update scripts that
1894-
* will get us there.
1895-
*/
1891+
* Figures out which script(s) we need to run to install the desired
1892+
* version of the extension. If we do not have a script that directly
1893+
* does what is needed, we try to find a sequence of update scripts that
1894+
* will get us there.
1895+
*/
18961896
static List *
18971897
find_versions_to_apply(ExtensionControlFile *pcontrol, const char **versionName)
18981898
{
@@ -5207,12 +5207,12 @@ pg_tle_set_default_version(PG_FUNCTION_ARGS)
52075207
}
52085208

52095209
/*
5210-
* Convert text array to list of strings.
5211-
*
5212-
* Note: the resulting list of strings is pallocated here.
5213-
*
5214-
* This is borrowed from pg_subscription.c
5215-
*/
5210+
* Convert text array to list of strings.
5211+
*
5212+
* Note: the resulting list of strings is pallocated here.
5213+
*
5214+
* This is borrowed from pg_subscription.c
5215+
*/
52165216
static List *
52175217
textarray_to_stringlist(ArrayType *textarray)
52185218
{

0 commit comments

Comments
 (0)