1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-07 00:36:50 +03:00

Add VARHDRSZ where needed. Many places just used 4.

This commit is contained in:
Bruce Momjian
1997-12-06 22:57:36 +00:00
parent 1932d92161
commit a68a132a6c
13 changed files with 78 additions and 78 deletions

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/async.c,v 1.24 1997/11/20 23:20:56 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/async.c,v 1.25 1997/12/06 22:56:24 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -619,7 +619,7 @@ Async_NotifyFrontEnd()
if (whereToSendOutput == Remote)
{
pq_putnchar("A", 1);
pq_putint(ourpid, 4);
pq_putint(ourpid, sizeof(ourpid));
pq_putstr(DatumGetName(d)->data);
pq_flush();
}

View File

@ -176,7 +176,7 @@ CreateTrigger(CreateTrigStmt * stmt)
{
char *ar = (char *) lfirst(le);
len += strlen(ar) + 4;
len += strlen(ar) + VARHDRSZ;
for (; *ar; ar++)
{
if (*ar == '\\')