pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christian Sengstock <csengstock@gmail.com>
To: pgsql-admin@postgresql.org
Subject: broken restore.sql script !?
Date: Wed, 22 Feb 2006 17:45:31 +0100
Message-ID: <febbf1590602220845t6160e88do@mail.gmail.com> (raw)

hi list,

i have a auto-generated restore.sql script which doesn't work for me because
of an obvious error inside of it. because the script is working for other
people i thought of an os error (i use linux, others windows).

the problem:

The function is created outside of the 'geo' schema, but after that, the
'alter function' statement tries to alter the function inside of the 'geo'
schema. the restore.sql file is from pgadmin. maybe there's a statement so
that the function could be created inside of the geo schema without writing
it explicit. like '\set search_path', so that i can restore it on the linux
command line.


some lines of it: ...

------------------------------------------------------------------------------------------------------
--
-- Name: box2d_out(box2d); Type: FUNCTION; Schema: geo; Owner: postgres
--

CREATE FUNCTION box2d_out(box2d) RETURNS cstring
    AS '$libdir/liblwgeom.so', 'BOX2DFLOAT4_out'
    LANGUAGE c IMMUTABLE STRICT;

ALTER FUNCTION geo.box2d_out(box2d) OWNER TO postgres;

--
-- Name: box2d; Type: TYPE; Schema: geo; Owner: postgres
--

CREATE TYPE box2d (
    INTERNALLENGTH = 16,
    INPUT = box2d_in,
    OUTPUT = box2d_out,
    ALIGNMENT = int4,
    STORAGE = plain
);

ALTER TYPE geo.box2d OWNER TO postgres;
-----------------------------------------------------------------------------------------------------------------------


thankx,
chris

view thread (4+ messages)  latest in thread

Message-ID: <febbf1590602220845t6160e88do@mail.gmail.com>
Permalink:  ../febbf1590602220845t6160e88do@mail.gmail.com/
Also on:    postgresql.org/message-id/febbf1590602220845t6160e88do@mail.gmail.com

 · 

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: csengstock@gmail.com
  Subject: Re: broken restore.sql script !?
  In-Reply-To: <febbf1590602220845t6160e88do@mail.gmail.com>
  References: <febbf1590602220845t6160e88do@mail.gmail.com>

* 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