-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new sysconf and pg information functions
- Add function pg_page_size() - Add function pg_segment_size() - Add function vm_available_pages() - Add function vm_page_size() - Add function vm_physical_pages() Also some README edition and preparing release 1.4.0
- Loading branch information
Showing
9 changed files
with
189 additions
and
24 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 |
---|---|---|
@@ -1,10 +1,22 @@ | ||
15/12/2024 Cédric Villemain <[email protected]> | ||
* 1.4.0 - Add GHA test for PostgreSQL 17 | ||
- Drop support for PostgreSQL < 12 | ||
- Add function pg_page_size() | ||
- Add function pg_segment_size() | ||
- Add function vm_available_pages() | ||
- Add function vm_page_size() | ||
- Add function vm_physical_pages() | ||
|
||
21/09/2023 Cédric Villemain <[email protected]> | ||
* 1.3.1 - drop support for upgrading from "unpackaged" | ||
|
||
21/09/2023 Cédric Villemain <[email protected]> | ||
* 1.3 - added support for PostgreSQL 16 | ||
- drop support for PostgreSQL < 9.4 | ||
2019-10-29 Cédric Villemain <[email protected]> | ||
|
||
29/10/2019 Cédric Villemain <[email protected]> | ||
* 1.2.2 - Fix bad errno usage | ||
|
||
22/09/2017 Cédric Villemain <[email protected]> | ||
* 1.2.1 - Fix check on NULL input for drawer function | ||
|
||
|
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
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
Empty file.
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,24 @@ | ||
CREATE FUNCTION pg_page_size() RETURNS bigint | ||
AS '$libdir/pgfincore' LANGUAGE C STABLE; | ||
COMMENT ON FUNCTION pg_page_size() | ||
IS 'Returns PostgreSQL page size in bytes'; | ||
|
||
CREATE FUNCTION pg_segment_size() RETURNS bigint | ||
AS '$libdir/pgfincore' LANGUAGE C STABLE; | ||
COMMENT ON FUNCTION pg_segment_size() | ||
IS 'Returns PostgreSQL segment size in blocks'; | ||
|
||
CREATE FUNCTION vm_available_pages() RETURNS bigint | ||
AS '$libdir/pgfincore' LANGUAGE C STABLE; | ||
COMMENT ON FUNCTION vm_available_pages() | ||
IS 'Returns current number of free pages in system memory'; | ||
|
||
CREATE FUNCTION vm_page_size() RETURNS bigint | ||
AS '$libdir/pgfincore' LANGUAGE C STABLE; | ||
COMMENT ON FUNCTION vm_page_size() | ||
IS 'Returns system page size in bytes'; | ||
|
||
CREATE FUNCTION vm_physical_pages(OUT sys_pages_free bigint) | ||
AS '$libdir/pgfincore' LANGUAGE C STABLE; | ||
COMMENT ON FUNCTION vm_physical_pages() | ||
IS 'Returns number of pages in system memory'; |
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,6 +1,6 @@ | ||
# pgfincore extension | ||
comment = 'examine and manage the os buffer cache' | ||
default_version = '1.3.1' | ||
default_version = '1.4.0' | ||
module_pathname = '$libdir/pgfincore' | ||
directory = pgfincore | ||
relocatable = true |
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