postgresql/src
Michael Paquier f7e954ad1c Rework code using list_delete_cell() in MergeAttributes
When merging two attributes, we are sure that at least one remains.
However, when deleting one element in the attribute list we may finish
with an empty list returned as NIL by list_delete_cell(), but the code
failed to track that, which is not project-like.  Adjust the call so as
we check for an empty list, and make use of it in an assertion.

This has been introduced by e7b3349, when adding support for CREATE
TABLE OF.

Author: Mark Dilger
Reviewed-by: Álvaro Herrera, Michael Paquier
Discussion: https://postgr.es/m/CAE-h2TpPDqSWgOvfvSziOaMngMPwW+QZcmPpY8hQ_KOJ2+3hXQ@mail.gmail.com
2019-06-05 15:01:14 +09:00
..
backend Rework code using list_delete_cell() in MergeAttributes 2019-06-05 15:01:14 +09:00
bin Fix typos in various places 2019-06-03 13:44:03 +09:00
common Fix typos in various places 2019-06-03 13:44:03 +09:00
fe_utils Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
include Add command column to pg_stat_progress_create_index 2019-06-04 09:29:02 +02:00
interfaces Un-break ecpg tests for Windows. 2019-06-02 11:07:54 -04:00
makefiles Define WIN32_STACK_RLIMIT throughout win32 and cygwin builds. 2019-04-09 08:25:39 -07:00
pl Clean up PL/Perl's handling of the _() macro. 2019-06-02 12:23:39 -04:00
port Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
template Yet further rethinking of build changes for macOS Mojave. 2018-11-02 18:54:00 -04:00
test Add command column to pg_stat_progress_create_index 2019-06-04 09:29:02 +02:00
timezone Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
tools Make cpluspluscheck more portable. 2019-06-02 13:45:01 -04:00
tutorial Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
.gitignore
DEVELOPERS
Makefile Fix partial-build problems introduced by having more generated headers. 2018-04-09 16:42:10 -04:00
Makefile.global.in Consistently test for in-use shared memory. 2019-04-12 22:36:38 -07:00
Makefile.shlib Ensure static libraries have correct mod time even if ranlib messes it up. 2018-11-29 15:53:44 -05:00
nls-global.mk Move logging.h and logging.c from src/fe_utils/ to src/common/. 2019-05-14 14:20:10 -04:00