On 04/11/2025 15:19, Manni Wood wrote: > I personally see no harm in additionally having an OID-based variant, > seeing as it looks like a lot of functions do seem to take an OID. If I > understand correctly, many functions take an OID, and Postgres users are > supposed to have read the docs (https://www.postgresql.org/docs/current/ > datatype-oid.html <https://www.postgresql.org/docs/current/datatype- > oid.html>) to know to cast names to OIDs. So, in terms of following > established practice / patterns, an OID-based variant is defensible. +1 That's the way I see it too. Of course it's always easier to use the tablespace's name, but there might be cases where you only have the oid -- in which case you'd need to do a JOIN with pg_tablespace to find the name. It's just for convenience. Best, Jim
- [PATCH] Add pg_get_tablespace_ddl() function to reconstruc... Manni Wood
- Re: [PATCH] Add pg_get_tablespace_ddl() function to r... Jim Jones
- Re: [PATCH] Add pg_get_tablespace_ddl() function ... Manni Wood
- Re: [PATCH] Add pg_get_tablespace_ddl() funct... Jim Jones
- Re: [PATCH] Add pg_get_tablespace_ddl() f... Nishant Sharma
- Re: [PATCH] Add pg_get_tablespace_dd... Jim Jones
- Re: [PATCH] Add pg_get_tablespac... Manni Wood
- Re: [PATCH] Add pg_get_table... Jim Jones
- Re: [PATCH] Add pg_get_table... Álvaro Herrera
- Re: [PATCH] Add pg_get_table... Nishant Sharma
- Re: [PATCH] Add pg_get_table... Álvaro Herrera
- Re: [PATCH] Add pg_get_table... Nishant Sharma
- Re: [PATCH] Add pg_get_table... Manni Wood
- Re: [PATCH] Add pg_get_table... Manni Wood
- Re: [PATCH] Add pg_get_table... Jim Jones
- Re: [PATCH] Add pg_get_table... Manni Wood
- Re: [PATCH] Add pg_get_table... Manni Wood
- Re: [PATCH] Add pg_get_table... Jim Jones
