summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sql/pgq/triggers/logtriga.c2
-rw-r--r--sql/pgq/triggers/logutriga.c2
-rw-r--r--sql/pgq/triggers/sqltriga.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/sql/pgq/triggers/logtriga.c b/sql/pgq/triggers/logtriga.c
index 4fe38c21..bc0a40bf 100644
--- a/sql/pgq/triggers/logtriga.c
+++ b/sql/pgq/triggers/logtriga.c
@@ -48,7 +48,7 @@ Datum pgq_logtriga(PG_FUNCTION_ARGS)
* Get the trigger call context
*/
if (!CALLED_AS_TRIGGER(fcinfo))
- elog(ERROR, "pgq.logutriga not called as trigger");
+ elog(ERROR, "pgq.logtriga not called as trigger");
tg = (TriggerData *)(fcinfo->context);
diff --git a/sql/pgq/triggers/logutriga.c b/sql/pgq/triggers/logutriga.c
index 35031274..7d950b14 100644
--- a/sql/pgq/triggers/logutriga.c
+++ b/sql/pgq/triggers/logutriga.c
@@ -98,7 +98,7 @@ Datum pgq_logutriga(PG_FUNCTION_ARGS)
* Connect to the SPI manager
*/
if (SPI_connect() < 0)
- elog(ERROR, "logtriga: SPI_connect() failed");
+ elog(ERROR, "logutriga: SPI_connect() failed");
pgq_prepare_event(&ev, tg, true);
diff --git a/sql/pgq/triggers/sqltriga.c b/sql/pgq/triggers/sqltriga.c
index 00f545f8..d06917ee 100644
--- a/sql/pgq/triggers/sqltriga.c
+++ b/sql/pgq/triggers/sqltriga.c
@@ -46,7 +46,7 @@ Datum pgq_sqltriga(PG_FUNCTION_ARGS)
* Get the trigger call context
*/
if (!CALLED_AS_TRIGGER(fcinfo))
- elog(ERROR, "pgq.logutriga not called as trigger");
+ elog(ERROR, "pgq.sqltriga not called as trigger");
tg = (TriggerData *)(fcinfo->context);
@@ -57,7 +57,7 @@ Datum pgq_sqltriga(PG_FUNCTION_ARGS)
* Connect to the SPI manager
*/
if (SPI_connect() < 0)
- elog(ERROR, "logtriga: SPI_connect() failed");
+ elog(ERROR, "sqltriga: SPI_connect() failed");
pgq_prepare_event(&ev, tg, true);