Build from file syntax troublem. - Mailing list pgsql-admin

From Igor Radtchenko
Subject Build from file syntax troublem.
Date
Msg-id 05030601450100.01195@inta
Whole thread Raw
Responses Re: Build from file syntax troublem.  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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

pgsql-admin by date:

Previous
From: Bearden Barnes
Date:
Subject: Re: PostgreSQL installation problem on Windows XP Home
Next
From: Tom Lane
Date:
Subject: Re: Build from file syntax troublem.