Skip to main content

Info messages copy command how to suppress

  • August 17, 2017
  • 5 replies
  • 7 views

sreeblr
Forum|alt.badge.img+2

While using copy command got this message –Vertica 8.1 stuff .
vsql:import_data.sql:14: NOTICE 7850: In a multi-threaded load, rejected record data may be written to additional files
HINT: Exceptions may be written to files [/home/dbadmin/Table_1_Exceptions.txt], [/home/dbadmin/Table_1_Exceptions.txt.1], etc
Data loaded without message in vertica 7.2.3 This messaged appeared when I tried to load in 8.1.1 . How to suppress this message

5 replies

marcothesane
Forum|alt.badge.img+1
  • Participating Frequently
  • August 17, 2017

Why would you want to suppress this message? If you want to load one million rows, and a thousand rows are rejected, you want to know why, don't you? And this message tells you where to search for the rejected rows and the reason why they were rejected.


sreeblr
Forum|alt.badge.img+2
  • Author
  • Participating Frequently
  • August 17, 2017

thanks but the same copy command worked before without any info message. If its 'INFO' maybe thought we can as well suppress.If I put to ouput file this message is not captured in the file


Jim_Knicely
Forum|alt.badge.img+2
  • Participating Frequently
  • August 20, 2017

The messages from vsql are very helpful. However if there are no rejected records we still get the NOTICE and HINT. Also, in a batch environment where I have a process that is looking at the results returned from vsql I may not want to see these messages.

dbadmin=> copy h from '/home/dbadmin/h.txt' rejected data 'jim.txt';
NOTICE 7850:  In a multi-threaded load, rejected record data may be written to additional files
HINT:  Rejected data may be written to files [jim.txt], [jim.txt.1], etc
 Rows Loaded
-------------
           3
(1 row)

No errors as the data was loaded fine...

I tried the "quiet" vsql option, but we still see the messages:

[dbadmin@vertica01 ~]$ vsql -qc "copy h from '/home/dbadmin/h.txt' rejected data 'jim.txt';"
NOTICE 7850:  In a multi-threaded load, rejected record data may be written to additional files
HINT:  Rejected data may be written to files [jim.txt], [jim.txt.1], etc
 Rows Loaded
-------------
           3
(1 row)

I opened a JIRA ticket (VER-56701) to address this.

PostGreSQL's psql clent has an option that I think we may need to add to Vertica's vsql client:

SET client_min_messages TO WARNING;


sreeblr
Forum|alt.badge.img+2
  • Author
  • Participating Frequently
  • February 8, 2018

Hi Jim any updates from vertica on this ticket


Jim_Knicely
Forum|alt.badge.img+2
  • Participating Frequently
  • February 8, 2018

No movement on the Jira :/ Other than a comment added on 12/07/2017 by another person asking for this feature too.