-
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.
into pgfincore 2.0.0
- Loading branch information
Showing
2 changed files
with
110 additions
and
0 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,53 @@ | ||
CREATE FUNCTION | ||
vm_cachestat( | ||
IN relation regclass | ||
, IN fork_name text | ||
, IN block_num bigint | ||
, IN nblocks bigint | ||
, OUT vm_pagesize bigint | ||
, OUT nr_cache bigint | ||
, OUT nr_dirty bigint | ||
, OUT nr_writeback bigint | ||
, OUT nr_evicted bigint | ||
, OUT nr_recently_evicted bigint | ||
, OUT pg_pagesize bigint | ||
) | ||
RETURNS record | ||
AS '$libdir/pgfincore' | ||
LANGUAGE C; | ||
|
||
CREATE FUNCTION | ||
vm_cachestat( | ||
IN relation regclass | ||
, IN block_num bigint | ||
, IN nblocks bigint | ||
, OUT vm_pagesize bigint | ||
, OUT nr_cache bigint | ||
, OUT nr_dirty bigint | ||
, OUT nr_writeback bigint | ||
, OUT nr_evicted bigint | ||
, OUT nr_recently_evicted bigint | ||
, OUT pg_pagesize bigint | ||
) | ||
RETURNS record | ||
AS $vm_cachestat$ | ||
SELECT * FROM vm_cachestat($1,'main',$2,$3) | ||
$vm_cachestat$ | ||
LANGUAGE SQL; | ||
|
||
CREATE FUNCTION | ||
vm_cachestat( | ||
IN relation regclass | ||
, OUT vm_pagesize bigint | ||
, OUT nr_cache bigint | ||
, OUT nr_dirty bigint | ||
, OUT nr_writeback bigint | ||
, OUT nr_evicted bigint | ||
, OUT nr_recently_evicted bigint | ||
, OUT pg_pagesize bigint | ||
) | ||
RETURNS record | ||
AS $vm_cachestat$ | ||
SELECT * FROM vm_cachestat($1,'main',NULL,NULL) | ||
$vm_cachestat$ | ||
LANGUAGE SQL; |
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