From 3908473c809d5c24940faebfabdad673f4302178 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 8 Nov 2000 22:10:03 +0000 Subject: Make DROP TABLE rollback-able: postpone physical file delete until commit. (WAL logging for this is not done yet, however.) Clean up a number of really crufty things that are no longer needed now that DROP behaves nicely. Make temp table mapper do the right things when drop or rename affecting a temp table is rolled back. Also, remove "relation modified while in use" error check, in favor of locking tables at first reference and holding that lock throughout the statement. --- src/include/parser/parse_node.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/include/parser/parse_node.h') diff --git a/src/include/parser/parse_node.h b/src/include/parser/parse_node.h index 22dd797c7fb..a0a41c3289a 100644 --- a/src/include/parser/parse_node.h +++ b/src/include/parser/parse_node.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: parse_node.h,v 1.22 2000/09/29 18:21:40 tgl Exp $ + * $Id: parse_node.h,v 1.23 2000/11/08 22:10:02 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -26,6 +26,7 @@ typedef struct ParseState List *p_joinlist; /* join items so far (will become * FromExpr node's fromlist) */ int p_last_resno; /* last targetlist resno assigned */ + List *p_forUpdate; /* FOR UPDATE clause, if any (see gram.y) */ bool p_hasAggs; bool p_hasSubLinks; bool p_is_insert; -- cgit v1.2.3