From: Tom Lane <tgl@sss.pgh.pa.us>
To: Frank Bax <fbax@sympatico.ca>
Cc: pgsql-sql@postgresql.org
Subject: Re: cli in sql?
Date: Fri, 11 Nov 2005 18:27:12 -0500
Message-ID: <22464.1131751632@sss.pgh.pa.us> (raw)
In-Reply-To: <5.2.1.1.0.20051111161921.05972bf0@pop6.sympatico.ca>
References: <5.2.1.1.0.20051111085132.04119120@pop6.sympatico.ca>
<5.2.1.1.0.20051111161921.05972bf0@pop6.sympatico.ca>
Frank Bax <fbax@sympatico.ca> writes:
> This looks interesting! But I'm not sure how to use it?
> wbax=> select version();
> version
> ---------------------------------------------------------------------
> PostgreSQL 7.4.3 on i386-unknown-openbsd3.6, compiled by GCC 2.95.3
> (1 row)
> wbax=> CREATE OR REPLACE FUNCTION filemodtime(TEXT) RETURNS TEXT LANGUAGE
> plperlu AS
> wbax-> $$
> wbax-> my $filename = shift;
> ERROR: syntax error at or near "$" at character 80
PG 7.4 doesn't understand $$ quotes --- you need to convert the function
body to old-style quoting. Or upgrade ;-) See
http://www.postgresql.org/docs/8.1/static/sql-syntax.html#SQL-SYNTAX-CONSTANTS
for details, esp. section 4.1.2.2.
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, fbax@sympatico.ca
Subject: Re: cli in sql?
In-Reply-To: <22464.1131751632@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