mirror of
https://github.com/postgres/postgres.git
synced 2025-08-31 17:02:12 +03:00
Support column-level privileges, as required by SQL standard.
Stephen Frost, with help from KaiGai Kohei and others
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/nodes/copyfuncs.c,v 1.420 2009/01/16 13:27:23 heikki Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/nodes/copyfuncs.c,v 1.421 2009/01/22 20:16:03 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -1740,6 +1740,8 @@ _copyRangeTblEntry(RangeTblEntry *from)
|
||||
COPY_SCALAR_FIELD(inFromCl);
|
||||
COPY_SCALAR_FIELD(requiredPerms);
|
||||
COPY_SCALAR_FIELD(checkAsUser);
|
||||
COPY_BITMAPSET_FIELD(selectedCols);
|
||||
COPY_BITMAPSET_FIELD(modifiedCols);
|
||||
|
||||
return newnode;
|
||||
}
|
||||
@@ -2342,6 +2344,17 @@ _copyFuncWithArgs(FuncWithArgs *from)
|
||||
return newnode;
|
||||
}
|
||||
|
||||
static AccessPriv *
|
||||
_copyAccessPriv(AccessPriv *from)
|
||||
{
|
||||
AccessPriv *newnode = makeNode(AccessPriv);
|
||||
|
||||
COPY_STRING_FIELD(priv_name);
|
||||
COPY_NODE_FIELD(cols);
|
||||
|
||||
return newnode;
|
||||
}
|
||||
|
||||
static GrantRoleStmt *
|
||||
_copyGrantRoleStmt(GrantRoleStmt *from)
|
||||
{
|
||||
@@ -4096,6 +4109,9 @@ copyObject(void *from)
|
||||
case T_FuncWithArgs:
|
||||
retval = _copyFuncWithArgs(from);
|
||||
break;
|
||||
case T_AccessPriv:
|
||||
retval = _copyAccessPriv(from);
|
||||
break;
|
||||
case T_XmlSerialize:
|
||||
retval = _copyXmlSerialize(from);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user