aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/sequence.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2020-09-27 22:30:44 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2020-09-27 22:30:52 -0400
commit9d299a492454f9ffdf0fd8fe1fd6303c8ddf805a (patch)
tree7c70c14299f6f37861faf4483c514ce8dd5cfaa7 /src/backend/commands/sequence.c
parent0baf82fa0cbe98fe317483f1e1c6612fc41e1dad (diff)
downloadpostgresql-9d299a492454f9ffdf0fd8fe1fd6303c8ddf805a.tar.gz
postgresql-9d299a492454f9ffdf0fd8fe1fd6303c8ddf805a.zip
Minor mop-up for List improvements.
Fix a few places that were using written-out versions of the pg_list.h macros that commit cc99baa43 just improved, making them also use those macros so as to gain whatever performance improvement is to be had. Discussion: https://postgr.es/m/CAApHDvpo1zj9KhEpU2cCRZfSM3Q6XGdhzuAS2v79PH7WJBkYVA@mail.gmail.com
Diffstat (limited to 'src/backend/commands/sequence.c')
-rw-r--r--src/backend/commands/sequence.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/commands/sequence.c b/src/backend/commands/sequence.c
index 6aab73bfd44..632b34af610 100644
--- a/src/backend/commands/sequence.c
+++ b/src/backend/commands/sequence.c
@@ -1668,7 +1668,7 @@ process_owned_by(Relation seqrel, List *owned_by, bool for_identity)
/* Separate relname and attr name */
relname = list_truncate(list_copy(owned_by), nnames - 1);
- attrname = strVal(lfirst(list_tail(owned_by)));
+ attrname = strVal(llast(owned_by));
/* Open and lock rel to ensure it won't go away meanwhile */
rel = makeRangeVarFromNameList(relname);