From 73d2a3595a3d14e64cb4dbcc09e90308a486e79f Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 6 Dec 2000 23:55:19 +0000 Subject: Clean up handling of FOR UPDATE inside views and subselects ... make it work where we can (given that the executor only handles it at top level) and generate an error where we can't. Note that while the parser has been allowing views to say SELECT FOR UPDATE for a few weeks now, that hasn't actually worked until just now. --- src/backend/parser/analyze.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/backend/parser/analyze.c') diff --git a/src/backend/parser/analyze.c b/src/backend/parser/analyze.c index e4834158765..2c33dba0ec5 100644 --- a/src/backend/parser/analyze.c +++ b/src/backend/parser/analyze.c @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: analyze.c,v 1.170 2000/12/05 19:57:55 tgl Exp $ + * $Id: analyze.c,v 1.171 2000/12/06 23:55:19 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -37,8 +37,6 @@ #include "mb/pg_wchar.h" #endif -void CheckSelectForUpdate(Query *qry); /* no points for style... */ - static Query *transformStmt(ParseState *pstate, Node *stmt); static Query *transformDeleteStmt(ParseState *pstate, DeleteStmt *stmt); static Query *transformInsertStmt(ParseState *pstate, InsertStmt *stmt); -- cgit v1.2.3