postgresql/src
Amit Kapila 644f0d7cc9 Use Enum for top level logical replication message types.
Logical replication protocol uses a single byte character to identify a
message type in logical replication protocol. The code uses string
literals for the same. Use Enum so that

1. All the string literals used can be found at a single place. This
makes it easy to add more types without the risk of conflicts.

2. It's easy to locate the code handling a given message type.

3. When used with switch statements, it is easy to identify the missing
cases using -Wswitch.

Author: Ashutosh Bapat
Reviewed-by: Kyotaro Horiguchi, Andres Freund, Peter Smith and Amit Kapila
Discussion: https://postgr.es/m/CAExHW5uPzQ7L0oAd_ENyvaiYMOPgkrAoJpE+ZY5-obdcVT6NPg@mail.gmail.com
2020-11-02 08:18:18 +05:30
..
backend Use Enum for top level logical replication message types. 2020-11-02 08:18:18 +05:30
bin Avoid null pointer dereference if error result lacks SQLSTATE. 2020-11-01 11:26:16 -05:00
common Fix two issues in TOAST decompression. 2020-11-01 18:38:42 -05:00
fe_utils Don't use custom OID symbols in pg_type.dat, either. 2020-10-29 13:33:38 -04:00
include Use Enum for top level logical replication message types. 2020-11-02 08:18:18 +05:30
interfaces Don't use custom OID symbols in pg_type.dat, either. 2020-10-29 13:33:38 -04:00
makefiles Remove libpq.rc, use win32ver.rc for libpq 2020-01-15 15:06:12 +01:00
pl Don't use custom OID symbols in pg_type.dat, either. 2020-10-29 13:33:38 -04:00
port Remove the option to build thread_test.c outside configure. 2020-10-21 12:08:48 -04:00
template Makefile comment: remove reference to tools/thread/thread_test 2020-10-27 14:00:50 -04:00
test Allow run-time pruning on nested Append/MergeAppend nodes 2020-11-02 13:46:56 +13:00
timezone Update time zone data files to tzdata release 2020d. 2020-10-22 21:23:47 -04:00
tools Add pg_relation_check_pages() to check on-disk pages of a relation 2020-10-28 12:15:00 +09:00
tutorial Remove support for postfix (right-unary) operators. 2020-09-17 19:38:05 -04:00
.gitignore
DEVELOPERS
Makefile Remove the option to build thread_test.c outside configure. 2020-10-21 12:08:48 -04:00
Makefile.global.in Split Makefile symbol CFLAGS_VECTOR into two symbols. 2020-09-06 21:28:16 -04:00
Makefile.shlib Add PostgreSQL home page to --help output 2020-02-28 13:12:21 +01:00
nls-global.mk NLS: Fix backend gettext triggers 2019-09-23 09:04:20 +02:00