mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
Identity columns
This is the SQL standard-conforming variant of PostgreSQL's serial columns. It fixes a few usability issues that serial columns have: - CREATE TABLE / LIKE copies default but refers to same sequence - cannot add/drop serialness with ALTER TABLE - dropping default does not drop sequence - need to grant separate privileges to sequence - other slight weirdnesses because serial is some kind of special macro Reviewed-by: Vitaly Burovoy <vitaly.burovoy@gmail.com>
This commit is contained in:
@ -5936,6 +5936,14 @@ get_insert_query_def(Query *query, deparse_context *context)
|
||||
if (query->targetList)
|
||||
appendStringInfoString(buf, ") ");
|
||||
|
||||
if (query->override)
|
||||
{
|
||||
if (query->override == OVERRIDING_SYSTEM_VALUE)
|
||||
appendStringInfoString(buf, "OVERRIDING SYSTEM VALUE ");
|
||||
else if (query->override == OVERRIDING_USER_VALUE)
|
||||
appendStringInfoString(buf, "OVERRIDING USER VALUE ");
|
||||
}
|
||||
|
||||
if (select_rte)
|
||||
{
|
||||
/* Add the SELECT */
|
||||
|
Reference in New Issue
Block a user