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

Commite09507a

Browse files
committed
Fix volatility marking of pg_size_pretty function
pg_size_pretty function should be marked immutable rather than volatilebecause it always returns the same result given the same argument.Pavel Stehule
1 parent8bea3d2 commite09507a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎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_NO201601221
56+
#defineCATALOG_VERSION_NO201601271
5757

5858
#endif

‎src/include/catalog/pg_proc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3583,9 +3583,9 @@ DATA(insert OID = 2332 ( pg_relation_sizePGNSP PGUID 12 1 0 0 0 f f f f t f v
35833583
DESCR("disk space usage for the specified fork of a table or index");
35843584
DATA(insert OID = 2286 ( pg_total_relation_size PGNSP PGUID 12 1 0 0 0 f f f f t f v s 1 0 20 "2205" _null_ _null_ _null_ _null_ _null_ pg_total_relation_size _null_ _null_ _null_ ));
35853585
DESCR("total disk space usage for the specified table and associated indexes");
3586-
DATA(insert OID = 2288 ( pg_size_prettyPGNSP PGUID 12 1 0 0 0 f f f f t fv s 1 0 25 "20" _null_ _null_ _null_ _null_ _null_ pg_size_pretty _null_ _null_ _null_ ));
3586+
DATA(insert OID = 2288 ( pg_size_prettyPGNSP PGUID 12 1 0 0 0 f f f f t fi s 1 0 25 "20" _null_ _null_ _null_ _null_ _null_ pg_size_pretty _null_ _null_ _null_ ));
35873587
DESCR("convert a long int to a human readable text using size units");
3588-
DATA(insert OID = 3166 ( pg_size_prettyPGNSP PGUID 12 1 0 0 0 f f f f t fv s 1 0 25 "1700" _null_ _null_ _null_ _null_ _null_ pg_size_pretty_numeric _null_ _null_ _null_ ));
3588+
DATA(insert OID = 3166 ( pg_size_prettyPGNSP PGUID 12 1 0 0 0 f f f f t fi s 1 0 25 "1700" _null_ _null_ _null_ _null_ _null_ pg_size_pretty_numeric _null_ _null_ _null_ ));
35893589
DESCR("convert a numeric to a human readable text using size units");
35903590
DATA(insert OID = 2997 ( pg_table_sizePGNSP PGUID 12 1 0 0 0 f f f f t f v s 1 0 20 "2205" _null_ _null_ _null_ _null_ _null_ pg_table_size _null_ _null_ _null_ ));
35913591
DESCR("disk space usage for the specified table, including TOAST, free space and visibility map");

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp