Unix Technical Forum

BUG #3652: quiet / VERBOSITY=terse does not silence PKEY NOTICE message

This is a discussion on BUG #3652: quiet / VERBOSITY=terse does not silence PKEY NOTICE message within the pgsql Bugs forums, part of the PostgreSQL category; --> The following bug has been logged online: Bug reference: 3652 Logged by: Robert Kleemann Email address: kleemann@scharp.org PostgreSQL version: ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Bugs

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 12:10 PM
Robert Kleemann
 
Posts: n/a
Default BUG #3652: quiet / VERBOSITY=terse does not silence PKEY NOTICE message


The following bug has been logged online:

Bug reference: 3652
Logged by: Robert Kleemann
Email address: kleemann@scharp.org
PostgreSQL version: 8.2.4
Operating system: linux, solaris 10
Description: quiet / VERBOSITY=terse does not silence PKEY NOTICE
message
Details:

Even if quiet and verbosity terse is set, creating a table with a primary
key will generate a NOTICE message that reports an index is being created.

dfmt_kleemann1=> \set VERBOSITY terse
dfmt_kleemann1=> \set quiet on
dfmt_kleemann1=> CREATE TABLE table1 (column1 INT, PRIMARY KEY(column1));
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "table1_pkey"
for table "table1"
CREATE TABLE
dfmt_kleemann1=>

I believe that the index is created via a call to
talblecmds.c:ATExecAddIndex()

The line:
/* suppress notices when rebuilding existing index */
quiet = is_rebuild;

Indicates that the message is only suppressed when an index is being
rebuilt. I think it should also be suppressed when the quiet option or
VERBOSITY terse is specified.

The usage case that makes this a problem is that I am using psql to operate
on a large sql file that creates many tables. The non-suppresable NOTICE
message is printed many times and makes it difficult to see actual error
messages when they show up.

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 12:10 PM
Tom Lane
 
Posts: n/a
Default Re: BUG #3652: quiet / VERBOSITY=terse does not silence PKEY NOTICE message

"Robert Kleemann" <kleemann@scharp.org> writes:
> Even if quiet and verbosity terse is set, creating a table with a primary
> key will generate a NOTICE message that reports an index is being created.


Those have nothing to do with it; in fact I don't think "\set quiet" has
any effect at all... Try "SET client_min_messages" instead.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at

http://www.postgresql.org/about/donate

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-10-2008, 12:10 PM
Robert Kleemann
 
Posts: n/a
Default Re: BUG #3652: quiet / VERBOSITY=terse does not silence PKEYNOTICE message

Thanks Tom! That did the trick. I didn't know this could be set outside
of the configuration file.

Robert.
> Those have nothing to do with it; in fact I don't think "\set quiet" has
> any effect at all... Try "SET client_min_messages" instead.
>
> regards, tom lane
>



---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:55 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com