Re: Debugging SQL queries

From: "chris smith" <dmagick(at)gmail(dot)com>
To: nikolay(at)samokhvalov(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Debugging SQL queries
Date: 2006-05-11 13:14:58
Message-ID: 3c1395330605110614r5c09030coce8768c06f32101c@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers pgsql-general

On 5/11/06, Nikolay Samokhvalov <samokhvalov(at)gmail(dot)com> wrote:
> From my point of view, more important problem is that log doesn't help
> to find the query (in other words, log message doesn't show context)

Yes it does.. but it depends on your logging setup.

in psql:

test=# blah;
ERROR: syntax error at or near "blah" at character 1

my log shows:

... [9-1] LOG: statement: blah;
... [10-1] ERROR: syntax error at or near "blah" at character 1

Do you have:

log_statement = true

in your postgresql.conf ?

--
Postgresql & php tutorials
http://www.designmagick.com/

In response to

Browse pgadmin-hackers by date

  From Date Subject
Next Message Tom Lane 2006-05-11 14:00:17 Re: [GENERAL] Debugging SQL queries
Previous Message Nikolay Samokhvalov 2006-05-11 13:08:09 Re: Debugging SQL queries

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-05-11 13:48:08 Re: Recovery problem with PostgreSQL
Previous Message Nikolay Samokhvalov 2006-05-11 13:08:09 Re: Debugging SQL queries