Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit106f2eb

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 itshould be oid.
1 parent9e360f0 commit106f2eb

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
WHEN6 THEN'rebuilding index'
934934
WHEN7 THEN'performing final cleanup'
935935
ENDAS phase,
936-
S.param3AS cluster_index_relid,
936+
CAST(S.param3ASoid)AS cluster_index_relid,
937937
S.param4AS heap_tuples_scanned,
938938
S.param5AS heap_tuples_written,
939939
S.param6AS 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-
#defineCATALOG_VERSION_NO201904051
56+
#defineCATALOG_VERSION_NO201904071
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)

[8]ページ先頭

©2009-2025 Movatter.jp