A minor simplification for List manipulation
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 3 Jul 2023 09:35:15 +0000 (11:35 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Mon, 3 Jul 2023 09:39:03 +0000 (11:39 +0200)
commit6d56c501a75fe0fd0b7104b3efee55e1cea8e80a
tree3603d782e9564ea6d9eea1121e1a75e3d9d61cac
parentdc6070bf5deec475b7efecaabf71eb9b49633973
A minor simplification for List manipulation

Fix one place that was using lfirst(list_head(list)) by using linitial(list)
instead.  They are equivalent but the latter is simpler.  We did the same in
9d299a49.

Author: Richard Guo <guofenglinux@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/CAMbWs49dJnpezDQDDxCPKq7+=_3NyqLqGqnhqCjd+dYe4MS15w@mail.gmail.com
src/backend/rewrite/rewriteSearchCycle.c