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
dc0400cc
Commit
dc0400cc
authored
Apr 06, 2017
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compiler warning and add some more comments
parent
07044efe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
src/backend/commands/tablecmds.c
src/backend/commands/tablecmds.c
+12
-0
No files found.
src/backend/commands/tablecmds.c
View file @
dc0400cc
...
...
@@ -5924,6 +5924,11 @@ ATExecAddIdentity(Relation rel, const char *colName,
return
address
;
}
/*
* ALTER TABLE ALTER COLUMN SET { GENERATED or sequence options }
*
* Return the address of the affected column.
*/
static
ObjectAddress
ATExecSetIdentity
(
Relation
rel
,
const
char
*
colName
,
Node
*
def
,
LOCKMODE
lockmode
)
{
...
...
@@ -5992,6 +5997,8 @@ ATExecSetIdentity(Relation rel, const char *colName, Node *def, LOCKMODE lockmod
ObjectAddressSubSet
(
address
,
RelationRelationId
,
RelationGetRelid
(
rel
),
attnum
);
}
else
address
=
InvalidObjectAddress
;
heap_freetuple
(
tuple
);
heap_close
(
attrelation
,
RowExclusiveLock
);
...
...
@@ -5999,6 +6006,11 @@ ATExecSetIdentity(Relation rel, const char *colName, Node *def, LOCKMODE lockmod
return
address
;
}
/*
* ALTER TABLE ALTER COLUMN DROP IDENTITY
*
* Return the address of the affected column.
*/
static
ObjectAddress
ATExecDropIdentity
(
Relation
rel
,
const
char
*
colName
,
bool
missing_ok
,
LOCKMODE
lockmode
)
{
...
...
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