agora inbox for pgsql-interfaces@postgresql.org  
help / color / mirror / Atom feed
From: Volkan YAZICI <volkan.yazici@gmail.com>
To: Gustavo Lopes <contratempo@gmail.com>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: libpq on windows
Date: Sun, 22 May 2005 10:22:24 +0300
Message-ID: <7104a737050522002267997cef@mail.gmail.com> (raw)
In-Reply-To: <2b5c484b0505201643d628432@mail.gmail.com>
References: <2b5c484b05051906526f8bb577@mail.gmail.com>
	<20704.202.47.227.25.1116570741.squirrel@202.47.227.25>
	<2b5c484b05052006206c301de@mail.gmail.com>
	<2b5c484b05052009545a310cd7@mail.gmail.com>
	<27068.1116615085@sss.pgh.pa.us>
	<2b5c484b0505201643d628432@mail.gmail.com>

Hi,

On 5/21/05, Gustavo Lopes <contratempo@gmail.com> wrote:
> Is there any easy (ie, no C postgres functions)  way to generate
> multi-line error messages so that I can explore that possibility?

One way of generating mult-line error messages could be increasing
verbosity level:

=> \set verbosity verbose

=> CREATE TABLE del_me_1 (id1 integer PRIMARY KEY);
=> CREATE TABLE del_me_2 (id2 integer REFERENCES del_me_1 (id1) );

=> DROP TABLE del_me_1;
NOTICE:  constraint del_me_2_id2_fkey on table del_me_2 depends on
table del_me_1
ERROR:  cannot drop table del_me_1 because other objects depend on it
HINT:  Use DROP ... CASCADE to drop the dependent objects too.

HTH.
Regards.



view thread (26+ messages)  latest in thread

Message-ID: <7104a737050522002267997cef@mail.gmail.com>
Permalink:  ../7104a737050522002267997cef@mail.gmail.com/
Also on:    postgresql.org/message-id/7104a737050522002267997cef@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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: volkan.yazici@gmail.com, contratempo@gmail.com
  Subject: Re: libpq on windows
  In-Reply-To: <7104a737050522002267997cef@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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox