Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
3513f4d1
Commit
3513f4d1
authored
Jun 30, 2000
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RemoveView was doing things the hard way...
parent
b41f4ab8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
17 deletions
+3
-17
src/backend/commands/view.c
src/backend/commands/view.c
+3
-17
No files found.
src/backend/commands/view.c
View file @
3513f4d1
...
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: view.c,v 1.4
3 2000/06/12 19:40:40 momjian
Exp $
* $Id: view.c,v 1.4
4 2000/06/30 07:06:05 tgl
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -109,7 +109,6 @@ DefineVirtualRelation(char *relname, List *tlist)
*
* Given a view name, returns the name for the 'on retrieve to "view"'
* rule.
* This routine is called when defining/removing a view.
*------------------------------------------------------------------
*/
char
*
...
...
@@ -293,22 +292,9 @@ DefineView(char *viewName, Query *viewParse)
void
RemoveView
(
char
*
viewName
)
{
char
*
rname
;
/*
* first remove all the "view" rules... Currently we only have one!
*/
rname
=
MakeRetrieveViewRuleName
(
viewName
);
RemoveRewriteRule
(
rname
);
/*
* we don't really need that, but just in case...
*/
CommandCounterIncrement
();
/*
* now remove the relation.
* We just have to drop the relation; the associated rules will
* be cleaned up automatically.
*/
heap_drop_with_catalog
(
viewName
);
pfree
(
rname
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment