mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +03:00
get_relid_attribute_name is dead, long live get_attname
The modern way is to use a missing_ok argument instead of two separate almost-identical routines, so do that. Author: Michaël Paquier Reviewed-by: Álvaro Herrera Discussion: https://postgr.es/m/20180201063212.GE6398@paquier.xyz
This commit is contained in:
@ -2176,7 +2176,7 @@ deparseColumnRef(StringInfo buf, int varno, int varattno, PlannerInfo *root,
|
||||
* FDW option, use attribute name.
|
||||
*/
|
||||
if (colname == NULL)
|
||||
colname = get_relid_attribute_name(rte->relid, varattno);
|
||||
colname = get_attname(rte->relid, varattno, false);
|
||||
|
||||
if (qualify_col)
|
||||
ADD_REL_QUALIFIER(buf, varno);
|
||||
|
Reference in New Issue
Block a user