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
cf6aa68b
Commit
cf6aa68b
authored
Feb 25, 2014
by
Robert Haas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update a few comments to mention materialized views.
Etsuro Fujita
parent
dd1a3bcc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
src/backend/commands/tablecmds.c
src/backend/commands/tablecmds.c
+8
-5
No files found.
src/backend/commands/tablecmds.c
View file @
cf6aa68b
...
@@ -2470,7 +2470,8 @@ RenameConstraint(RenameStmt *stmt)
...
@@ -2470,7 +2470,8 @@ RenameConstraint(RenameStmt *stmt)
}
}
/*
/*
* Execute ALTER TABLE/INDEX/SEQUENCE/VIEW/FOREIGN TABLE RENAME
* Execute ALTER TABLE/INDEX/SEQUENCE/VIEW/MATERIALIZED VIEW/FOREIGN TABLE
* RENAME
*/
*/
Oid
Oid
RenameRelation
(
RenameStmt
*
stmt
)
RenameRelation
(
RenameStmt
*
stmt
)
...
@@ -2478,8 +2479,9 @@ RenameRelation(RenameStmt *stmt)
...
@@ -2478,8 +2479,9 @@ RenameRelation(RenameStmt *stmt)
Oid
relid
;
Oid
relid
;
/*
/*
* Grab an exclusive lock on the target table, index, sequence or view,
* Grab an exclusive lock on the target table, index, sequence, view,
* which we will NOT release until end of transaction.
* materialized view, or foreign table, which we will NOT release until
* end of transaction.
*
*
* Lock level used here should match RenameRelationInternal, to avoid lock
* Lock level used here should match RenameRelationInternal, to avoid lock
* escalation.
* escalation.
...
@@ -2522,8 +2524,9 @@ RenameRelationInternal(Oid myrelid, const char *newrelname, bool is_internal)
...
@@ -2522,8 +2524,9 @@ RenameRelationInternal(Oid myrelid, const char *newrelname, bool is_internal)
Oid
namespaceId
;
Oid
namespaceId
;
/*
/*
* Grab an exclusive lock on the target table, index, sequence or view,
* Grab an exclusive lock on the target table, index, sequence, view,
* which we will NOT release until end of transaction.
* materialized view, or foreign table, which we will NOT release until
* end of transaction.
*/
*/
targetrelation
=
relation_open
(
myrelid
,
AccessExclusiveLock
);
targetrelation
=
relation_open
(
myrelid
,
AccessExclusiveLock
);
namespaceId
=
RelationGetNamespace
(
targetrelation
);
namespaceId
=
RelationGetNamespace
(
targetrelation
);
...
...
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