mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Fix a dozen or so places that were passing unpredictable data strings
as elog format strings. Hai-Chen Tu pointed out the problem in contrib/dbmirror, but it wasn't the only such error.
This commit is contained in:
@ -132,7 +132,7 @@ _rserv_log_()
|
||||
GetCurrentTransactionId(), deleted, rel->rd_id, okey);
|
||||
|
||||
if (debug)
|
||||
elog(DEBUG3, sql);
|
||||
elog(DEBUG3, "sql: %s", sql);
|
||||
|
||||
ret = SPI_exec(sql, 0);
|
||||
|
||||
@ -153,7 +153,7 @@ _rserv_log_()
|
||||
deleted, okey);
|
||||
|
||||
if (debug)
|
||||
elog(DEBUG3, sql);
|
||||
elog(DEBUG3, "sql: %s", sql);
|
||||
|
||||
ret = SPI_exec(sql, 0);
|
||||
|
||||
@ -177,7 +177,7 @@ _rserv_log_()
|
||||
rel->rd_id, GetCurrentTransactionId(), okey);
|
||||
|
||||
if (debug)
|
||||
elog(DEBUG3, sql);
|
||||
elog(DEBUG3, "sql: %s", sql);
|
||||
|
||||
ret = SPI_exec(sql, 0);
|
||||
|
||||
|
Reference in New Issue
Block a user