aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_relation.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2018-02-12 19:30:30 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2018-02-12 19:33:15 -0300
commit8237f27b504ff1d1e2da7ae4c81a7f72ea0e0e3e (patch)
treedd4faedb7b7d92e6c1f0ea7fade2eac487ccbc1c /src/backend/parser/parse_relation.c
parent88ef48c1ccee6a2200e01318180cf521413b3012 (diff)
downloadpostgresql-8237f27b504ff1d1e2da7ae4c81a7f72ea0e0e3e.tar.gz
postgresql-8237f27b504ff1d1e2da7ae4c81a7f72ea0e0e3e.zip
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
Diffstat (limited to 'src/backend/parser/parse_relation.c')
-rw-r--r--src/backend/parser/parse_relation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/parser/parse_relation.c b/src/backend/parser/parse_relation.c
index 2625da5327a..053ae02c9fe 100644
--- a/src/backend/parser/parse_relation.c
+++ b/src/backend/parser/parse_relation.c
@@ -2687,7 +2687,7 @@ get_rte_attribute_name(RangeTblEntry *rte, AttrNumber attnum)
* built (which can easily happen for rules).
*/
if (rte->rtekind == RTE_RELATION)
- return get_relid_attribute_name(rte->relid, attnum);
+ return get_attname(rte->relid, attnum, false);
/*
* Otherwise use the column name from eref. There should always be one.