From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Frank Bax <fbax(at)sympatico(dot)ca> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: cli in sql? |
Date: | 2005-11-11 23:27:12 |
Message-ID: | 22464.1131751632@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Frank Bax <fbax(at)sympatico(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Steve SAUTETNER | 2005-11-13 06:27:09 | Problem with "NOT IN (subquery) |
Previous Message | Judith Altamirano Figueroa | 2005-11-11 23:04:47 | pg_dump |