-
+
Server Configuration
- Statements that generate syntax errors are not logged. Set
- log_min_error_statement> to error> to
- log such statements.
-
-
- When a function is defined in the
-
PL/pgSQLserver-side language, any queries
- executed by the function will only be logged the first time that the
- function is invoked in a particular session. This is because
-
PL/pgSQL keeps a cache of the
- query plans produced for the SQL statements in the function.
+ Statements that contain simple syntax errors are not logged
+ even by the log_statement> = all> setting,
+ because the log message is emitted only after basic parsing has
+ been done to determine the statement type. In the case of extended
+ query protocol, this setting likewise does not log statements that
+ fail before the Execute phase (i.e., during parse analysis or
+ planning). Set log_min_error_statement> to
+ error> to log such statements.