Skip to content

Commit 940f772

Browse files
committed
Support temporary setting of search path during CREATE SCHEMA; this
allows the example in the CREATE SCHEMA ref page to actually work now. Also, clean up when the transaction that initially creates a temp-table namespace is later aborted. Simplify internal representation of search path by folding special cases into the main list.
1 parent 5f21560 commit 940f772

File tree

5 files changed

+241
-157
lines changed

5 files changed

+241
-157
lines changed

src/backend/access/transam/xact.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.121 2002/05/17 01:19:16 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.122 2002/05/17 20:53:33 tgl Exp $
1212
*
1313
* NOTES
1414
* Transaction aborts can now occur two ways:
@@ -164,6 +164,7 @@
164164
#include "access/xact.h"
165165
#include "catalog/heap.h"
166166
#include "catalog/index.h"
167+
#include "catalog/namespace.h"
167168
#include "commands/async.h"
168169
#include "commands/sequence.h"
169170
#include "commands/trigger.h"
@@ -1009,6 +1010,7 @@ CommitTransaction(void)
10091010
AtEOXact_hash();
10101011
AtEOXact_nbtree();
10111012
AtEOXact_rtree();
1013+
AtEOXact_Namespace(true);
10121014
AtCommit_Cache();
10131015
AtCommit_Locks();
10141016
AtEOXact_CatCache(true);
@@ -1112,6 +1114,7 @@ AbortTransaction(void)
11121114
AtEOXact_hash();
11131115
AtEOXact_nbtree();
11141116
AtEOXact_rtree();
1117+
AtEOXact_Namespace(false);
11151118
AtAbort_Cache();
11161119
AtEOXact_CatCache(false);
11171120
AtAbort_Memory();

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy