Build from file syntax troublem.
От
Igor Radtchenko
Тема
Build from file syntax troublem.
Дата
Msg-id
05030601450100.01195@inta
Список
Дерево обсуждения
Build from file syntax troublem. Igor Radtchenko <inta@komi.parma.ru>
Re: Build from file syntax troublem. Tom Lane <tgl@sss.pgh.pa.us>
Re: Build from file syntax troublem (part II). Radtchenko Igor <inta@komi.parma.ru>
Re: Build from file syntax troublem (part II). Tom Lane <tgl@sss.pgh.pa.us>
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
В списке pgsql-admin по дате отправления