mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +03:00
Make toast-table creation and deletion work somewhat reliably.
Don't go through pg_exec_query_dest(), but directly to the execution routines. Also, extend parameter lists so that there's no need to change the global setting of allowSystemTableMods, a hack that was certain to cause trouble in the event of any error.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/libpq/Attic/be-pqexec.c,v 1.33 2000/06/28 03:31:41 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/libpq/Attic/be-pqexec.c,v 1.34 2000/07/04 06:11:37 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -136,7 +136,11 @@ PQexec(char *query)
|
||||
* pg_exec_query_dest will put the query results in a portal which will
|
||||
* end up on the top of the portal stack.
|
||||
*
|
||||
* XXX memory context manipulation needs thought here.
|
||||
* XXX memory context manipulation is WRONG here --- the query needs
|
||||
* to be executed in a context different from CurrentMemoryContext,
|
||||
* perhaps a freshly created sub-context. If I were expecting that
|
||||
* this code needs to work again, then I'd fix it. But actually I'm
|
||||
* planning to rip out this entire module sometime soon... tgl 7/2000.
|
||||
* ----------------
|
||||
*/
|
||||
pg_exec_query_dest(query, Local, CurrentMemoryContext);
|
||||
|
||||
Reference in New Issue
Block a user