debuglevel / loglevel hochsetzten

Hallo,

gibt es eine Möglichkeit bei pgsql den debuglevel bzw. loglevel hochzusetzen?

Wenn ja, wo?


Gruß Nixdorf

Ja, guggst Du postgresql.conf.

Andreas

Hallo,

gegooglet habe ich schon, kann da aber nicht viel finden. In der postgresql.conf finde ich folgendes:

#---------------------------------------------------------------------------

ERROR REPORTING AND LOGGING

#---------------------------------------------------------------------------

- Syslog -

#syslog = 0 # range 0-2; 0=stdout; 1=both; 2=syslog
#syslog_facility = ‘LOCAL0’
#syslog_ident = ‘postgres’

- When to Log -

#client_min_messages = notice # Values, in order of decreasing detail:

debug5, debug4, debug3, debug2, debug1,

log, info, notice, warning, error

#log_min_messages = notice # Values, in order of decreasing detail:

debug5, debug4, debug3, debug2, debug1,

info, notice, warning, error, log, fatal,

panic

#log_error_verbosity = default # terse, default, or verbose messages

#log_min_error_statement = panic # Values in order of increasing severity:

debug5, debug4, debug3, debug2, debug1,

info, notice, warning, error, panic(off)

#log_min_duration_statement = -1 # Log all statements whose

execution time exceeds the value, in

milliseconds. Zero prints all queries.

Minus-one disables.

#silent_mode = false # DO NOT USE without Syslog!

- What to Log -

#debug_print_parse = false
#debug_print_rewritten = false
#debug_print_plan = false
#debug_pretty_print = false
#log_connections = false
#log_duration = false
#log_pid = false
#log_statement = false
log_timestamp = true
#log_hostname = false
#log_source_port = false


Gruß Nixdorf

Ja. ‘notice’ ist Default. Was hättest Du denn gerne? Das mußt Du dann halt den Variablen zuweisen.
Hint: wenn da ein # steht, ist es ein Kommentar.

Andreas

Prima, danke jetzt wird ein wenig mehr gelogt.

Gruß Frank