Skip to content

Commit 08e39b5

Browse files
authored
Merge pull request #70 from RekGRpth/patch-1
Postgres 17 support
2 parents c6ae0dd + a44de67 commit 08e39b5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: compat.h

+4-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ InitPostgresCompat(const char *in_dbname, Oid dboid,
5555
bool override_allow_connections,
5656
char *out_dbname)
5757
{
58-
#if PG_VERSION_NUM >= 150000
58+
#if PG_VERSION_NUM >= 170000
59+
InitPostgres(in_dbname, dboid, username, useroid, (load_session_libraries ? INIT_PG_LOAD_SESSION_LIBS : 0) |
60+
(override_allow_connections ? INIT_PG_OVERRIDE_ALLOW_CONNS : 0), out_dbname);
61+
#elif PG_VERSION_NUM >= 150000
5962
InitPostgres(in_dbname, dboid, username, useroid, load_session_libraries,
6063
override_allow_connections, out_dbname);
6164
#elif PG_VERSION_NUM >= 110000

0 commit comments

Comments
 (0)