-
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 #24 from leborchuk/PG94Support
Add ifdef instructions to support PG 94
- Loading branch information
Showing
3 changed files
with
44 additions
and
1 deletion.
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
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,28 @@ | ||
\echo Use "CREATE EXTENSION logerrors" to load this file. \quit | ||
|
||
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; | ||
|
||
CREATE FUNCTION pg_log_errors_reset() | ||
RETURNS void | ||
AS 'MODULE_PATHNAME', 'pg_log_errors_reset' | ||
LANGUAGE C STRICT; | ||
|
||
CREATE FUNCTION pg_slow_log_stats( | ||
OUT slow_count integer, | ||
OUT reset_time timestamp | ||
) | ||
RETURNS SETOF record | ||
AS 'MODULE_PATHNAME', 'pg_slow_log_stats' | ||
LANGUAGE C STRICT; | ||
GRANT ALL ON FUNCTION pg_slow_log_stats() TO public; |
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