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

compat.h

Lines changed: 4 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy