Re: SE-PgSQL patch review - Mailing list pgsql-hackers

From Ross J. Reedstrom
Subject Re: SE-PgSQL patch review
Date
Msg-id 20091124160759.GA6264@rice.edu
Whole thread Raw
In response to Re: SE-PgSQL patch review  (KaiGai Kohei <kaigai@ak.jp.nec.com>)
Responses Re: SE-PgSQL patch review
List pgsql-hackers
On Tue, Nov 24, 2009 at 03:12:43PM +0900, KaiGai Kohei wrote:
> Itagaki Takahiro wrote:
> > * CREATE TABLE tbl (col integer AS SECURITY_CONTEXT = '...')
> >   Is the syntax "<AS> SECURITY_CONTEXT" natural in English?
> 
> We need to put a reserved token, such as "AS", prior to the SECURITY_CONTEXT
> to avoid syntax conflicts to "DEFAULT b_expr" option.

Does "WITH" work? Seems to read better to me:

CREATE TABLE tbl (col integer WITH SECURITY CONTEXT [...])

-- 
Ross Reedstrom, Ph.D.                                 reedstrm@rice.edu
Systems Engineer & Admin, Research Scientist        phone: 713-348-6166
The Connexions Project      http://cnx.org            fax: 713-348-3665
Rice University MS-375, Houston, TX 77005
GPG Key fingerprint = F023 82C8 9B0E 2CC6 0D8E  F888 D3AE 810E 88F0 BEDE


pgsql-hackers by date:

Previous
From: Michael Meskes
Date:
Subject: Re: [INTERFACES] ecpg & 8.3 -> 8.4 migration
Next
From: Tim Bunce
Date:
Subject: Initial refactoring of plperl.c - draft [PATCH]