index

postgres-fsource

fsource

My aim is to edit results of arbitrary query, if sufficient info was selected (or is known): Is that a step towards writeable views?

In 2004 I attempted to implement this idea: http://archives.postgresql.org/pgsql-general/2004-07/msg00606.php http://archives.postgresql.org/pgsql-general/2004-07/threads.php

patch for 8.1

by studying postgresql/pgsql-server/src/include/nodes/primnodes.h

cd /p/postgresql-7.4.5/work/postgresql-7.4.5/
foreach file (src/backend/access/common/printtup.c src/interfaces/libpq/libpq-fe.h  src/interfaces/libpq/fe-exec.c src/interfaces/libpq/libpq-int.h  src/interfaces/libpq/fe-protocol3.c)
{
diff --unified -b -B ${file}  /p/postgresql-7.4.3-r1/work/postgresql-7.4.3/${file}  
}

 patch -p0   < /p/pg.patch

gauche-pg builds:

mmc_pg_hack #defined in ok /usr/include/libpq-fe.h bad in /usr/include/postgresql/libpq-fe.h

Freeing partially PQresult

/p/postgresql-8.1.1/work/postgresql-8.1.1/src/interfaces/libpq/fe-exec.c