1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-16 06:01:02 +03:00

Add a "relistemp" boolean column to pg_class, which is true for temporary

relations (including a temp table's indexes and toast table/index), and
false for normal relations.  For ease of checking, this commit just adds
the column and fills it correctly --- revising the relation access machinery
to use it will come separately.
This commit is contained in:
Tom Lane
2009-03-31 17:59:56 +00:00
parent eeeb782e60
commit df13324f08
6 changed files with 69 additions and 45 deletions

View File

@ -1,4 +1,4 @@
<!-- $PostgreSQL: pgsql/doc/src/sgml/catalogs.sgml,v 2.199 2009/03/05 23:06:45 tgl Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/catalogs.sgml,v 2.200 2009/03/31 17:59:55 tgl Exp $ -->
<!--
Documentation of the system catalogs, directed toward PostgreSQL developers
-->
@ -1532,6 +1532,16 @@
</entry>
</row>
<row>
<entry><structfield>relistemp</structfield></entry>
<entry><type>bool</type></entry>
<entry></entry>
<entry>
True if this table is a temporary relation. If so, only the creating
session can safely access its contents
</entry>
</row>
<row>
<entry><structfield>relkind</structfield></entry>
<entry><type>char</type></entry>