pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Extension make installcheck: include update/insert feedback?
2+ messages / 2 participants
[nested] [flat]

* Extension make installcheck: include update/insert feedback?
@ 2018-04-05 00:17  Paul Jungwirth <pj@illuminatedcomputing.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Paul Jungwirth @ 2018-04-05 00:17 UTC (permalink / raw)
  To: pgsql-general

Hello,

I have a custom extension that uses the usual REGRESS Makefile variable 
to indicate files in {sql,expected} that should be used when you say 
`make installcheck`.

I've noticed that if my test code does an INSERT or DELETE, the usual 
`INSERT 0 1` and `UPDATE 2` messages don't appear in the *.out files, 
even though those otherwise mirror psql. I thought maybe there was some 
psql switch that turns those on/off, but I couldn't find one. I'd like 
to include those messages in my expected/*.out files though, so that my 
tests verify I'm adding/updating as many rows as I intend. Is there any 
way to do that?

Thanks,

-- 
Paul              ~{:-)
pj@illuminatedcomputing.com




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Extension make installcheck: include update/insert feedback?
@ 2018-04-05 01:06  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Paul Jungwirth <pj@illuminatedcomputing.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2018-04-05 01:06 UTC (permalink / raw)
  To: Paul Jungwirth <pj@illuminatedcomputing.com>; +Cc: pgsql-general

Paul Jungwirth <pj@illuminatedcomputing.com> writes:
> I've noticed that if my test code does an INSERT or DELETE, the usual 
> `INSERT 0 1` and `UPDATE 2` messages don't appear in the *.out files, 
> even though those otherwise mirror psql. I thought maybe there was some 
> psql switch that turns those on/off, but I couldn't find one.

That's because pg_regress launches psql with the -q option (as well as -a).

I think you might be able to override that within a particular test script
by fooling with QUIET, or whichever psql variable it is that that switch
sets.

			regards, tom lane




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2018-04-05 01:06 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-04-05 00:17 Extension make installcheck: include update/insert feedback? Paul Jungwirth <pj@illuminatedcomputing.com>
2018-04-05 01:06 ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox