-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from maklff/sqlstate
Add sqlstate to the ouptput of pg_log_errors_stats()
- Loading branch information
Showing
3 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
ALTER EXTENSION logerrors DROP FUNCTION pg_log_errors_stats(); | ||
DROP FUNCTION IF EXISTS pg_log_errors_stats(); | ||
|
||
CREATE FUNCTION pg_log_errors_stats( | ||
OUT time_interval integer, | ||
OUT type text, | ||
OUT message text, | ||
OUT count integer, | ||
OUT username text, | ||
OUT database text, | ||
OUT sqlstate text | ||
) | ||
RETURNS SETOF record | ||
AS 'MODULE_PATHNAME', 'pg_log_errors_stats' | ||
LANGUAGE C STRICT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# logerrors extension | ||
comment = 'Function for collecting statistics about messages in logfile' | ||
default_version = '2.0' | ||
default_version = '2.1' | ||
module_pathname = '$libdir/logerrors' | ||
relocatable = true |