1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-02 04:21:28 +03:00

Fix for NOTIFY when NAMEDATALEN is nonstandard in server. Fix idea from

Tom Lane to move string storage to end of structure but keep pointer in
the same location.
This commit is contained in:
Bruce Momjian
2002-04-15 23:35:51 +00:00
parent 394eec1068
commit 5b92d004fa
2 changed files with 13 additions and 6 deletions

View File

@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: libpq-fe.h,v 1.83 2002/03/05 06:07:26 momjian Exp $
* $Id: libpq-fe.h,v 1.84 2002/04/15 23:35:51 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -105,8 +105,7 @@ typedef struct pg_result PGresult;
*/
typedef struct pgNotify
{
char relname[NAMEDATALEN]; /* name of relation containing
* data */
char *relname; /* name of relation containing data */
int be_pid; /* process id of backend */
} PGnotify;