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

Commit579c025

Browse files
committed
Simplify the definitions of a couple of system views by using SELECT *
instead of listing all the columns returned by the underlying function.initdb not forced since this patch doesn't actually change anything aboutthe stored form of the views. It just means there's one less place to changeif someone wants to add columns to them.
1 parent3290e61 commit579c025

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

‎src/backend/catalog/system_views.sql

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 1996-2008, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/src/backend/catalog/system_views.sql,v 1.54 2008/08/25 11:18:43 mha Exp $
6+
* $PostgreSQL: pgsql/src/backend/catalog/system_views.sql,v 1.55 2008/09/21 19:38:56 tgl Exp $
77
*/
88

99
CREATEVIEWpg_rolesAS
@@ -142,13 +142,10 @@ CREATE VIEW pg_stats AS
142142
REVOKE ALLon pg_statisticFROM public;
143143

144144
CREATEVIEWpg_locksAS
145-
SELECT*
146-
FROM pg_lock_status()AS L;
145+
SELECT*FROM pg_lock_status()AS L;
147146

148147
CREATEVIEWpg_cursorsAS
149-
SELECTC.name,C.statement,C.is_holdable,C.is_binary,
150-
C.is_scrollable,C.creation_time
151-
FROM pg_cursor()AS C;
148+
SELECT*FROM pg_cursor()AS C;
152149

153150
CREATEVIEWpg_prepared_xactsAS
154151
SELECTP.transaction,P.gid,P.prepared,
@@ -158,12 +155,10 @@ CREATE VIEW pg_prepared_xacts AS
158155
LEFT JOIN pg_database DONP.dbid=D.oid;
159156

160157
CREATEVIEWpg_prepared_statementsAS
161-
SELECTP.name,P.statement,P.prepare_time,P.parameter_types,P.from_sql
162-
FROM pg_prepared_statement()AS P;
158+
SELECT*FROM pg_prepared_statement()AS P;
163159

164160
CREATEVIEWpg_settingsAS
165-
SELECT*
166-
FROM pg_show_all_settings()AS A;
161+
SELECT*FROM pg_show_all_settings()AS A;
167162

168163
CREATERULEpg_settings_uAS
169164
ONUPDATE TO pg_settings

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp