mirror of
https://github.com/postgres/postgres.git
synced 2025-06-11 20:28:21 +03:00
Restore NOTICEs that were mistakenly removed from triggers regression
test expected output. Tweak contrib/spi Makefile so that refint.so is by default built with appropriate NOTICE support for regression testing.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
# $Header: /cvsroot/pgsql/contrib/spi/Makefile,v 1.21 2001/09/06 10:49:30 petere Exp $
|
||||
# $Header: /cvsroot/pgsql/contrib/spi/Makefile,v 1.22 2002/10/03 18:40:02 tgl Exp $
|
||||
|
||||
subdir = contrib/spi
|
||||
top_builddir = ../..
|
||||
@ -8,8 +8,8 @@ MODULES = autoinc insert_username moddatetime refint timetravel
|
||||
DATA_built = $(addsuffix .sql, $(MODULES))
|
||||
DOCS = README.spi $(addsuffix .example, $(MODULES))
|
||||
|
||||
ifdef REFINT_VERBOSE
|
||||
# this is needed for the regression tests;
|
||||
# comment out if you want a quieter refint package for other uses
|
||||
PG_CPPFLAGS = -DREFINT_VERBOSE
|
||||
endif
|
||||
|
||||
include $(top_srcdir)/contrib/contrib-global.mk
|
||||
|
@ -563,12 +563,14 @@ check_foreign_key(PG_FUNCTION_ARGS)
|
||||
elog(ERROR, "%s: tuple referenced in %s",
|
||||
trigger->tgname, relname);
|
||||
}
|
||||
#ifdef REFINT_VERBOSE
|
||||
else
|
||||
elog(DEBUG3, "%s: %d tuple(s) of %s are %s",
|
||||
{
|
||||
#ifdef REFINT_VERBOSE
|
||||
elog(NOTICE, "%s: %d tuple(s) of %s are %s",
|
||||
trigger->tgname, SPI_processed, relname,
|
||||
(action == 'c') ? "deleted" : "setted to null");
|
||||
#endif
|
||||
}
|
||||
args += nkeys + 1; /* to the next relation */
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user