mirror of
https://github.com/postgres/postgres.git
synced 2025-06-20 15:22:23 +03:00
Make pg_relation_size() and friends return NULL if the object doesn't exist.
That avoids errors when the functions are used in queries like "SELECT pg_relation_size(oid) FROM pg_class", and a table is dropped concurrently. Phil Sorber
This commit is contained in:
@ -14979,6 +14979,11 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
|
||||
the table name.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
If an OID that does not represent an existing object is passed as
|
||||
argument to one of the above functions, NULL is returned.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
The functions shown in <xref linkend="functions-admin-dblocation"> assist
|
||||
in identifying the specific disk files associated with database objects.
|
||||
|
Reference in New Issue
Block a user