pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Igor Radtchenko <inta@komi.parma.ru>
To: pgsql-admin@postgresql.org
Subject: Build from file syntax troublem.
Date: Sun, 6 Mar 2005 01:45:01 +0300
Message-ID: <05030601450100.01195@inta> (raw)

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



view thread (2+ messages)  latest in thread

Message-ID: <05030601450100.01195@inta>
Permalink:  ../05030601450100.01195@inta/
Also on:    postgresql.org/message-id/05030601450100.01195@inta

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: inta@komi.parma.ru
  Subject: Re: Build from file syntax troublem.
  In-Reply-To: <05030601450100.01195@inta>
  References: <05030601450100.01195@inta>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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