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

Commit 106f2eb

Browse files
committed
Cast pg_stat_progress_cluster.cluster_index_relid to oid
It's tracked internally as bigint, but when presented to the user it should be oid.
1 parent 9e360f0 commit 106f2eb

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

doc/src/sgml/monitoring.sgml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3937,7 +3937,7 @@ SELECT pg_stat_get_backend_pid(s.backendid) AS pid,
39373937
</row>
39383938
<row>
39393939
<entry><structfield>cluster_index_relid</structfield></entry>
3940-
<entry><type>bigint</type></entry>
3940+
<entry><type>oid</type></entry>
39413941
<entry>
39423942
If the table is being scanned using an index, this is the OID of the
39433943
index being used; otherwise, it is zero.

src/backend/catalog/system_views.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ CREATE VIEW pg_stat_progress_cluster AS
933933
WHEN 6 THEN 'rebuilding index'
934934
WHEN 7 THEN 'performing final cleanup'
935935
END AS phase,
936-
S.param3 AS cluster_index_relid,
936+
CAST(S.param3 AS oid) AS cluster_index_relid,
937937
S.param4 AS heap_tuples_scanned,
938938
S.param5 AS heap_tuples_written,
939939
S.param6 AS heap_blks_total,

src/include/catalog/catversion.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@
5353
*/
5454

5555
/* yyyymmddN */
56-
#define CATALOG_VERSION_NO 201904051
56+
#define CATALOG_VERSION_NO 201904071
5757

5858
#endif

src/test/regress/expected/rules.out

+1-1
Original file line numberDiff line numberDiff line change
@@ -1855,7 +1855,7 @@ pg_stat_progress_cluster| SELECT s.pid,
18551855
WHEN 7 THEN 'performing final cleanup'::text
18561856
ELSE NULL::text
18571857
END AS phase,
1858-
s.param3 AS cluster_index_relid,
1858+
(s.param3)::oid AS cluster_index_relid,
18591859
s.param4 AS heap_tuples_scanned,
18601860
s.param5 AS heap_tuples_written,
18611861
s.param6 AS heap_blks_total,

0 commit comments

Comments
 (0)