Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 25e8421

Browse files
committed
Add snapfs_snapshots view
1 parent 269bca7 commit 25e8421

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/backend/catalog/system_views.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,6 +1119,10 @@ LANGUAGE INTERNAL
11191119
STRICT IMMUTABLE PARALLEL SAFE
11201120
AS 'jsonb_insert';
11211121

1122+
CREATE VIEW snapfs_snapshots AS
1123+
select *,(select pg_get_snapshot_timestamp(generate_series)), pg_size_pretty((select pg_get_snapshot_size(generate_series)))
1124+
from generate_series((select oldest_snapshot from pg_control_snapshot()), (select recent_snapshot from pg_control_snapshot()));
1125+
11221126
--
11231127
-- The default permissions for functions mean that anyone can execute them.
11241128
-- A number of functions shouldn't be executable by just anyone, but rather

0 commit comments

Comments
 (0)