Re: Cross-schema inheritence problem

From: Alban Hertroys <alban(at)magproductions(dot)nl>
To: Alban Hertroys <alban(at)magproductions(dot)nl>
Cc: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Cross-schema inheritence problem
Date: 2007-05-03 10:30:20
Message-ID: 4639B9BC.9070801@magproductions.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Alban Hertroys wrote:
> Hello all,
>
> I'm trying to inherit a table from the public schema as a table with the
> same name in a user-specific schema, but I can't get it to work.
>
> Say I have:
> CREATE TABLE test (test_id serial PRIMARY KEY, name text NOT NULL);
>
> CREATE SCHEMA alban AUTHORIZATION alban;
>
> ALTER USER alban SET search_path TO alban;
>
> CREATE TABLE alban.test () INHERITS (public.test);
> ERROR: must be owner of relation test
>
> Is there some way around this?

Oh never mind, that works the wrong way around anyway. I need VIEWs.

--
Alban Hertroys
alban(at)magproductions(dot)nl

magproductions b.v.

T: ++31(0)534346874
F: ++31(0)534346876
M:
I: www.magproductions.nl
A: Postbus 416
7500 AK Enschede

// Integrate Your World //

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2007-05-03 12:02:48 Re: Update violating constraint
Previous Message jasme 2007-05-03 09:36:18 WAL