question marks in logs

Поиск
Список
Период
Сортировка
От Campbell, Lance
Тема question marks in logs
Дата
Msg-id B75CD08C73BD3543B97E4EF3964B7D70203B44A0@CITESMBX1.ad.uillinois.edu
обсуждение исходный текст
Список pgsql-admin

PostgreSQL 9.5.2

PostgreSQL JDBC42 – 9.4.1208 JDBC42

 

I have logging turned on in PostgreSQL.  I had an error message that OFFSET must not be negative.  I get that.  No problem.  Then underneath that line in the log file is the STATEMENT: .  The SQL is displayed.  In JAVA I use prepared statements.  So the SQL statement is displayed includes this fk_xyz_id=? .  I cannot identify the issue in my web application without knowing what the value is for “?”.  If I did I might be able to recreate the issue in order to fix it.

 

Is there a way to tell PostgreSQL to display the actual SQL statement?  If not  then why not?  It seems like PostgreSQL has to know what the value is for the “?” in order to actually execute the query.  Or am I missing something?  If there is not a way for PostgreSQL to display the value of the question mark then could someone explain to me why?  I must not understand a fundamental relationship between the database and the PostgreSQL JDBC driver.

 

Thanks,

 

Lance

В списке pgsql-admin по дате отправления:

Предыдущее
От: "Vicky Soni - Quipment India"
Дата:
Сообщение: PITR Setup Using Hot StandBy
Следующее
От: Dave Johansen
Дата:
Сообщение: Re: PITR Setup Using Hot StandBy