Re: error messages without schema name

From: Filip Rembiałkowski <plk(dot)zuber(at)gmail(dot)com>
To: "Shoaib Mir" <shoaibmir(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: error messages without schema name
Date: 2006-12-13 16:17:36
Message-ID: 92869e660612130817k1db76a69lf61c33731457d78d@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

06-12-13, Shoaib Mir <shoaibmir(at)gmail(dot)com> napisał(a):
> You can not truncate table 'foo' because there is referential integrity
> between 'foo' and 'bar', so try using
>
> TRUNCATE nsp2.foo CASCADE;
>
> You can find the schema name for 'bar' using a query like:
>
> select nspname from pg_namespace where oid = (select relnamespace from
> pg_class where relname = 'bar');
this returns 2 schema names. which one is of my "bar"?

Actually, I was asking if this behaviour of postgres is OK?
I heard from my PostgreSQL teacher, that all such messages should be
corrected in the source code, to include schema name too.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Palle Girgensohn 2006-12-13 16:21:42 Re: [girgen@FreeBSD.org: Re: port fault on pg_ctl's
Previous Message Marc Evans 2006-12-13 16:12:59 Re: dynamic plpgsql question