Re: GRANT ON ALL IN schema - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: GRANT ON ALL IN schema
Date
Msg-id 4A873886.5020209@dunslane.net
Whole thread Raw
In response to Re: GRANT ON ALL IN schema  (Josh Berkus <josh@agliodbs.com>)
List pgsql-hackers

Josh Berkus wrote:
>> I'm also not sure I want to be trying to execute any arbitrary string
>> that accidentally gets placed there because someone forgot to put a
>> keyword or accidentally deleted it.
>>
>> But I'm not too dogmatic on the subject. What do others think?
>>     
>
> Given that $$ is also used to quote non-procedural strings, I don't like
> the idea that psql would be trying to execute any string I gave it after
> forgetting "select".  If nothing else, that would lead to confusing and
> misleading error messages.
>
> Ideally, we'd be able to execute *any* PL that way by setting a shell
> variable:
>
> \pl plperl
> DO $f$ foreach ( @_ ) { ...
>
>
>   

I think you have misunderstood.

I am not talking at all about doing this in psql. It would be built into 
the server's SQL so you could use any client, and the default language 
would be a GUC as Tom suggested upstream.

cheers

andrew


pgsql-hackers by date:

Previous
From: Sam Mason
Date:
Subject: Re: GRANT ON ALL IN schema
Next
From: Peter Eisentraut
Date:
Subject: Re: freezing tuples ( was: Why is vacuum_freeze_min_age 100m? )