diff options
author | Marc G. Fournier <scrappy@hub.org> | 1996-11-11 12:16:57 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1996-11-11 12:16:57 +0000 |
commit | 41b8c2c849cfa5f10263c40fd09bc8448a593724 (patch) | |
tree | 04babf53e9cda7d150ab5347e9e6e700dfe04b3a /src/interfaces/libpq/fe-connect.c | |
parent | 2bdded3540a9723c240152a37627846433e61234 (diff) | |
download | postgresql-41b8c2c849cfa5f10263c40fd09bc8448a593724.tar.gz postgresql-41b8c2c849cfa5f10263c40fd09bc8448a593724.zip |
As proposed,
following is the patch to libpq's large object interface that
removes the requirement to include fmgr.h into fe-lobj.c.
The large object interface now ask's the backend to tell the
OID's of all the required functions in pg_proc.
From: wieck@sapserv.debis.de (Jan Wieck)
Diffstat (limited to 'src/interfaces/libpq/fe-connect.c')
-rw-r--r-- | src/interfaces/libpq/fe-connect.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index 8e733d59566..49cd005cb1b 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.17 1996/11/10 03:06:36 momjian Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.18 1996/11/11 12:16:54 scrappy Exp $ * *------------------------------------------------------------------------- */ @@ -192,6 +192,7 @@ PQconnectdb(const char *conninfo) conn->Pfdebug = NULL; conn->port = NULL; conn->notifyList = DLNewList(); + conn->lobjfuncs = NULL; conn->pghost = strdup(conninfo_getval("host")); conn->pgport = strdup(conninfo_getval("port")); @@ -299,6 +300,7 @@ PQsetdb(const char *pghost, const char* pgport, const char* pgoptions, const cha conn->Pfdebug = NULL; conn->port = NULL; conn->notifyList = DLNewList(); + conn->lobjfuncs = NULL; if (!pghost || pghost[0] == '\0') { if (!(tmp = getenv("PGHOST"))) { @@ -519,6 +521,7 @@ freePGconn(PGconn *conn) if (conn->dbName) free(conn->dbName); if (conn->pguser) free(conn->pguser); if (conn->notifyList) DLFreeList(conn->notifyList); + if (conn->lobjfuncs) free(conn->lobjfuncs); free(conn); } |