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

Commit bf3c585

Browse files
committed
Set information_schema.tables.commit_action to null
The commit action of temporary tables is currently not cataloged, so we can't easily show it. The previous value was outdated from before we had different commit actions.
1 parent c1129a1 commit bf3c585

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

doc/src/sgml/information_schema.sgml

+1-6
Original file line numberDiff line numberDiff line change
@@ -5416,12 +5416,7 @@ ORDER BY c.ordinal_position;
54165416
<row>
54175417
<entry><literal>commit_action</literal></entry>
54185418
<entry><type>character_data</type></entry>
5419-
<entry>
5420-
If the table is a temporary table, then
5421-
<literal>PRESERVE</literal>, else null. (The SQL standard
5422-
defines other commit actions for temporary tables, which are
5423-
not supported by <productname>PostgreSQL</>.)
5424-
</entry>
5419+
<entry>Not yet implemented</entry>
54255420
</row>
54265421
</tbody>
54275422
</tgroup>

src/backend/catalog/information_schema.sql

+1-4
Original file line numberDiff line numberDiff line change
@@ -1862,10 +1862,7 @@ CREATE VIEW tables AS
18621862
THEN 'YES' ELSE 'NO' END AS yes_or_no) AS is_insertable_into,
18631863

18641864
CAST(CASE WHEN t.typname IS NOT NULL THEN 'YES' ELSE 'NO' END AS yes_or_no) AS is_typed,
1865-
CAST(
1866-
CASE WHEN nc.oid = pg_my_temp_schema() THEN 'PRESERVE' -- FIXME
1867-
ELSE null END
1868-
AS character_data) AS commit_action
1865+
CAST(null AS character_data) AS commit_action
18691866

18701867
FROM pg_namespace nc JOIN pg_class c ON (nc.oid = c.relnamespace)
18711868
LEFT JOIN (pg_type t JOIN pg_namespace nt ON (t.typnamespace = nt.oid)) ON (c.reloftype = t.oid)

0 commit comments

Comments
 (0)