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
764ce22a
Commit
764ce22a
authored
Apr 25, 2015
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert: Honor OID status of CREATE LIKE'd tables
Reverts
d992f8a8
Report by Tom Lane
parent
ee8d3927
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
15 deletions
+1
-15
src/backend/parser/parse_utilcmd.c
src/backend/parser/parse_utilcmd.c
+1
-15
No files found.
src/backend/parser/parse_utilcmd.c
View file @
764ce22a
...
...
@@ -56,7 +56,6 @@
#include "rewrite/rewriteManip.h"
#include "utils/acl.h"
#include "utils/builtins.h"
#include "utils/guc.h"
#include "utils/lsyscache.h"
#include "utils/rel.h"
#include "utils/syscache.h"
...
...
@@ -223,7 +222,7 @@ transformCreateStmt(CreateStmt *stmt, const char *queryString)
cxt
.
blist
=
NIL
;
cxt
.
alist
=
NIL
;
cxt
.
pkey
=
NULL
;
cxt
.
hasoids
=
default_with_oids
;
cxt
.
hasoids
=
interpretOidsOption
(
stmt
->
options
,
true
)
;
Assert
(
!
stmt
->
ofTypename
||
!
stmt
->
inhRelations
);
/* grammar enforces */
...
...
@@ -282,17 +281,6 @@ transformCreateStmt(CreateStmt *stmt, const char *queryString)
* Output results.
*/
stmt
->
tableElts
=
cxt
.
columns
;
/*
* Add WITH/WITHOUT OIDS, if necessary. A literal statement-specified
* WITH/WITHOUT OIDS will still take precedence because the first
* matching "oids" in "options" is used.
*/
if
(
cxt
.
hasoids
&&
!
interpretOidsOption
(
stmt
->
options
,
true
))
stmt
->
options
=
lappend
(
stmt
->
options
,
makeDefElem
(
"oids"
,
(
Node
*
)
makeInteger
(
TRUE
)));
else
if
(
!
cxt
.
hasoids
&&
interpretOidsOption
(
stmt
->
options
,
true
))
stmt
->
options
=
lappend
(
stmt
->
options
,
makeDefElem
(
"oids"
,
(
Node
*
)
makeInteger
(
FALSE
)));
stmt
->
constraints
=
cxt
.
ckconstraints
;
result
=
lappend
(
cxt
.
blist
,
stmt
);
...
...
@@ -861,8 +849,6 @@ transformTableLikeClause(CreateStmtContext *cxt, TableLikeClause *table_like_cla
}
}
cxt
->
hasoids
=
relation
->
rd_rel
->
relhasoids
;
/*
* Copy CHECK constraints if requested, being careful to adjust attribute
* numbers so they match the child.
...
...
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