![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I used wanted to point out the the ( -q, --quiet ) parameter for reindexdb command utility does not work. Actually it is *not* a bug. The NOTICE is printed by the REINDEX |
|
Also reindexdb writes NOTICE to standard err for every table it reindexes which makes it really hard to use in script as it always produces an "errror". :-) You can always ignore NOTICE. grep is your friend. :-) |
#3
| ||||
| ||||
|
|
I used wanted to point out the the ( -q, --quiet ) parameter for reindexdb command utility does not work. Actually it is *not* a bug. The NOTICE is printed by the REINDEX command; reindexdb is just a wrapper around REINDEX command. If you set up 'client_min_messages' in postgresql.conf, you don't get those 'annoying' messages. I'll take a look at that. I have to make sure that I don't need it |
|
Also reindexdb writes NOTICE to standard err for every table it reindexes which makes it really hard to use in script as it always produces an "errror". :-) You can always ignore NOTICE. grep is your friend. :-) True, but usually I like to have my ERROR messages to stderr and INFO |
|
Looking at the code, IMHO we could raise the ereport from NOTICE to INFO (see the patch attached). None of the scripts actually raise NOTICEs if it succeeds. Comments? INFO sounds like a good idea. What do you think about sending INFO to |
| -- Euler Taveira de Oliveira http://www.timbira.com/ a.diff |
#4
| |||
| |||
|
|
You can always ignore NOTICE. grep is your friend. :-) True, but usually I like to have my ERROR messages to stderr and INFO to stdout. But it's not true in PostgreSQL. All ereport() messages are sent to |
#5
| |||
| |||
|
|
I used wanted to point out the the ( -q, --quiet ) parameter for reindexdb command utility does not work. Actually it is *not* a bug. The NOTICE is printed by the REINDEX command; reindexdb is just a wrapper around REINDEX command. If you set up 'client_min_messages' in postgresql.conf, you don't get those 'annoying' messages. Also reindexdb writes NOTICE to standard err for every table it reindexes which makes it really hard to use in script as it always produces an "errror". :-) You can always ignore NOTICE. grep is your friend. :-) Looking at the code, IMHO we could raise the ereport from NOTICE to INFO (see the patch attached). None of the scripts actually raise NOTICEs if it succeeds. Comments? -- Euler Taveira de Oliveira http://www.timbira.com/ |
|
---------------------------(end of broadcast)--------------------------- TIP 5: don't forget to increase your free space map settings |
#6
| |||
| |||
|
|
Patch applied. Thanks. |
#7
| |||
| |||
|
|
Bruce Momjian <pgman (AT) candle (DOT) pha.pa.us> writes: Patch applied. Thanks. Why is this an improvement? AFAIR an INFO message is *not suppressible* by adjusting client_min_messages, therefore this makes the system more chatty not less so. It certainly doesn't do anything to address the original complaint. |
#8
| |||
| |||
|
|
I thought it needed changing for consistency. Shouldn't status messages like this be INFO: test=> REINDEX DATABASE test; NOTICE: table "pg_class" was reindexed If I do VACUUM VERBOSE, those messages are INFO. |
#9
| |||
| |||
|
|
Bruce Momjian <pgman (AT) candle (DOT) pha.pa.us> writes: I thought it needed changing for consistency. Shouldn't status messages like this be INFO: test=> REINDEX DATABASE test; NOTICE: table "pg_class" was reindexed If I do VACUUM VERBOSE, those messages are INFO. Yeah, *only because you said VERBOSE*. When we implemented the current elog level scheme, we designed INFO as non-suppressible so that it would mimic the previous behavior of VACUUM VERBOSE. If REINDEX had a VERBOSE option, it would make sense to put out the messages as INFO when VERBOSE was used. But it doesn't (and this is not a request to add one). Without VERBOSE, I think it's utterly unacceptable to force the messages out regardless of client_min_messages. NOTICE was a reasonable level, maybe LOG would be a better one. But not INFO. |
#10
| |||
| |||
|
|
Yeah, *only because you said VERBOSE*. When we implemented the current elog level scheme, we designed INFO as non-suppressible so that it would mimic the previous behavior of VACUUM VERBOSE. Agreed. |
|
If REINDEX had a VERBOSE option, it would make sense to put out the messages as INFO when VERBOSE was used. But it doesn't (and this is not a request to add one). Without VERBOSE, I think it's utterly unacceptable to force the messages out regardless of client_min_messages. NOTICE was a reasonable level, maybe LOG would be a better one. But not INFO. LOG would be a good option, but maybe a small hack in reindexdb is |
![]() |
| Thread Tools | |
| Display Modes | |
| |