From: | Igor Radtchenko <inta(at)komi(dot)parma(dot)ru> |
---|---|
To: | pgsql-admin(at)postgresql(dot)org |
Subject: | Build from file syntax troublem. |
Date: | 2005-03-05 22:45:01 |
Message-ID: | 05030601450100.01195@inta |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2005-03-05 23:38:26 | Re: Build from file syntax troublem. |
Previous Message | francis feh | 2005-03-05 14:09:12 | help!!!!!! |