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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy