Re: Command Triggers - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Command Triggers
Date
Msg-id 201202280044.18423.andres@anarazel.de
Whole thread Raw
In response to Re: Command Triggers  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Command Triggers  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Tuesday, February 28, 2012 12:30:36 AM Tom Lane wrote:
> Andres Freund <andres@anarazel.de> writes:
> > Sorry for letting this slide.
> > 
> > Is it worth adding this bit to OpenIntoRel? Not sure if there is danger
> > in allowing anyone to create shared tables
> > 
> >     /* In all cases disallow placing user relations in pg_global */
> >     if (tablespaceId == GLOBALTABLESPACE_OID)
> >     
> >         ereport(ERROR,
> >         
> >                 (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
> >                 
> >                  errmsg("only shared relations can be placed in pg_global
> > 
> > tablespace")));
> 
> Ugh ... if that's currently allowed, we definitely need to fix it.
Btw, whats the danger youre seing?

Andres


pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Command Triggers
Next
From: Tom Lane
Date:
Subject: Re: Trigger execution role (was: Triggers with DO functionality)