postgresql/src/backend/rewrite
Peter Eisentraut ebf76f2753 Add TupleDescGetDefault()
This unifies some repetitive code.

Note: I didn't push the "not found" error message into the new
function, even though all existing callers would be able to make use
of it.  Using the existing error handling as-is would probably require
exposing the Relation type via tupdesc.h, which doesn't seem
desirable.  (Or even if we changed it to just report the OID, it would
inject the concept of a relation containing the tuple descriptor into
tupdesc.h, which might be a layering violation.  Perhaps some further
improvements could be considered here separately.)

Discussion: https://www.postgresql.org/message-id/flat/52a125e4-ff9a-95f5-9f61-b87cf447e4da%40eisentraut.org
2023-09-27 18:52:40 +01:00
..
Makefile SEARCH and CYCLE clauses 2021-02-01 14:32:51 +01:00
meson.build Update copyright for 2023 2023-01-02 15:00:37 -05:00
rewriteDefine.c Get rid of the "new" and "old" entries in a view's rangetable. 2023-01-18 13:23:57 -05:00
rewriteHandler.c Add TupleDescGetDefault() 2023-09-27 18:52:40 +01:00
rewriteManip.c Re-allow INDEX_VAR as rt_index in ChangeVarNodes(). 2023-06-08 13:11:49 -04:00
rewriteRemove.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
rewriteSearchCycle.c A minor simplification for List manipulation 2023-07-03 11:39:03 +02:00
rewriteSupport.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
rowsecurity.c Fix RLS policy usage in MERGE. 2023-08-07 09:28:47 +01:00