diff options
| author | Bruce Momjian <bruce@momjian.us> | 2003-03-25 02:44:36 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2003-03-25 02:44:36 +0000 |
| commit | f1792b932c574eada6527a87e2489364f700fca4 (patch) | |
| tree | 7e7d1f2ff809c2b0542110e68e5cbf5d88715310 /src/interfaces/libpq/libpq-fe.h | |
| parent | 6a19c6dccfee66df3970dfba15a8590fdd399bc1 (diff) | |
| download | postgresql-f1792b932c574eada6527a87e2489364f700fca4.tar.gz | |
Use PQfreemem() consistently, and document its use for Notify.
Keep PQfreeNotify() around for binary compatibility.
Diffstat (limited to 'src/interfaces/libpq/libpq-fe.h')
| -rw-r--r-- | src/interfaces/libpq/libpq-fe.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/interfaces/libpq/libpq-fe.h b/src/interfaces/libpq/libpq-fe.h index ce9132deb4..d32b6fdeea 100644 --- a/src/interfaces/libpq/libpq-fe.h +++ b/src/interfaces/libpq/libpq-fe.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: libpq-fe.h,v 1.90 2003/03/22 03:29:06 momjian Exp $ + * $Id: libpq-fe.h,v 1.91 2003/03/25 02:44:36 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -260,7 +260,8 @@ extern void PQfreemem(void *ptr); /* Simple synchronous query */ extern PGresult *PQexec(PGconn *conn, const char *query); extern PGnotify *PQnotifies(PGconn *conn); -extern void PQfreeNotify(PGnotify *notify); +/* Exists for backward compatibility. bjm 2003-03-24 */ +#define PQfreeNotify(ptr) PQfreemem(ptr) /* Interface for multiple-result or asynchronous queries */ extern int PQsendQuery(PGconn *conn, const char *query); |
