pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedBuild from file syntax troublem.
2+ messages / 2 participants
[nested] [flat]
* Build from file syntax troublem.
@ 2005-03-05 22:45 Igor Radtchenko <inta@komi.parma.ru>
2005-03-05 23:38 ` Re: Build from file syntax troublem. Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 2+ messages in thread
From: Igor Radtchenko @ 2005-03-05 22:45 UTC (permalink / raw)
To: pgsql-admin
Hello, All!
I have to fiil datebase from file contains strings alike such:
CREATE SEQUENCE public.blacklist_id_seq INCREMENT 1 MINVALUE 1
MAXVALUE2147483647 CACHE 1;
and
CREATE FUNCTION public.from_days(int4) RETURNS timestamp AS '
select ''0000-01-02''::timestamp + ($1 || '' days'')::interval as result
' LANGUAGE 'sql' VOLATILE;
The parser abuse that
'parse error at or near '"." ',
'parse error at or near "public'" ',
'parse error at or near "#'" '.
PostgeSQL version is 7.2.3.
I've nowhere found isuch syntax in the net (I mean with dot -
'public.funcname(...)').
There is plpgsql only in the database;
When I try
./createlang -dbname=mydb sql
it says "unsupported language".
But SELECT * FROM pg_language
show that it's present.
Where I'm wrong?
Successes & good luck for all,
Igor
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Build from file syntax troublem.
2005-03-05 22:45 Build from file syntax troublem. Igor Radtchenko <inta@komi.parma.ru>
@ 2005-03-05 23:38 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2005-03-05 23:38 UTC (permalink / raw)
To: Igor Radtchenko <inta@komi.parma.ru>; +Cc: pgsql-admin
Igor Radtchenko <inta@komi.parma.ru> writes:
> CREATE FUNCTION public.from_days(int4) RETURNS timestamp AS '
> select ''0000-01-02''::timestamp + ($1 || '' days'')::interval as result
> ' LANGUAGE 'sql' VOLATILE;
> The parser abuse that
> 'parse error at or near '"." ',
> 'parse error at or near "public'" ',
> 'parse error at or near "#'" '.
> PostgeSQL version is 7.2.3.
You need 7.3 or later to deal with schema-aware commands.
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2005-03-05 23:38 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-03-05 22:45 Build from file syntax troublem. Igor Radtchenko <inta@komi.parma.ru>
2005-03-05 23:38 ` Tom Lane <tgl@sss.pgh.pa.us>
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