From: Jasen Betts <jasen@xnet.co.nz>
To: pgsql-bugs@postgresql.org
Subject: Re: Feature request: include script file into function body (better syntax)
Date: 3 Feb 2011 12:05:04 GMT
Message-ID: <iie5lg$b91$3@reversiblemaps.ath.cx> (raw)
References: <20110201112120.GA1327@cashmere.aip.de>
<26900.1296576145@sss.pgh.pa.us>
<20110201164422.GA3023@cashmere.aip.de>
<4D47EB12020000250003A0EE@gw.wicourts.gov>
<20110201185004.GA7511@cashmere.aip.de>
<20110201190927.GB7511@cashmere.aip.de>
<1161.1296588901@sss.pgh.pa.us>
<20110201200410.GB8252@cashmere.aip.de>
On 2011-02-01, Steve White <swhite@aip.de> wrote:
> Hi Tom,
>
> I already agreed to Kevin's proposed syntax, and it is better than
> my suggestion, but mine isn't quite as crazy as you make out.
>
> On 1.02.11, Tom Lane wrote:
>> Steve White <swhite@aip.de> writes:
>> > Try this instead:
>>
>> > ================================================
>> > CREATE OR REPLACE FUNCTION
>> > myfunc( ... )
>> > RETURNS VOID AS '#PGSQL_IMPORT filename' LANGUAGE PLPYTHONU;
>> > ================================================
>>
>> I think having psql decide that string literals mean something other
>> than their face value is Right Out --- it would bite you on the rear
>> just when you least expect it.
>
> Interesting idea... but why would psql make this decision?
> Did somebody suggest that off-line?
>
> I said that the script interpreter might do this...
if the interpreter does it you stop ordinary users from using it
for security reasons,
--
⚂⚃ 100% natural
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: jasen@xnet.co.nz
Subject: Re: Feature request: include script file into function body (better syntax)
In-Reply-To: <iie5lg$b91$3@reversiblemaps.ath.cx>
References: <20110201112120.GA1327@cashmere.aip.de> <26900.1296576145@sss.pgh.pa.us> <20110201164422.GA3023@cashmere.aip.de> <4D47EB12020000250003A0EE@gw.wicourts.gov> <20110201185004.GA7511@cashmere.aip.de> <20110201190927.GB7511@cashmere.aip.de> <1161.1296588901@sss.pgh.pa.us> <20110201200410.GB8252@cashmere.aip.de> <iie5lg$b91$3@reversiblemaps.ath.cx>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox