From: Tom Lane <tgl@sss.pgh.pa.us>
To: Steve White <swhite@aip.de>
Cc: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Feature request: include script file into function body (better syntax)
Date: Tue, 01 Feb 2011 14:35:01 -0500
Message-ID: <1161.1296588901@sss.pgh.pa.us> (raw)
In-Reply-To: <20110201190927.GB7511@cashmere.aip.de>
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>
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. And the notion of the behavior being
language-dependent is right out to the fourth power. But see my
alternative proposal to Kevin just now.
regards, tom lane
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: tgl@sss.pgh.pa.us, swhite@aip.de, Kevin.Grittner@wicourts.gov
Subject: Re: Feature request: include script file into function body (better syntax)
In-Reply-To: <1161.1296588901@sss.pgh.pa.us>
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>
* 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