postgresql/src/backend
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
..
access Reproduce debug_query_string==NULL on parallel workers. 2020-10-31 08:43:28 -07:00
bootstrap Don't use custom OID symbols in pg_type.dat, either. 2020-10-29 13:33:38 -04:00
catalog Preserve index data in pg_statistic across REINDEX CONCURRENTLY 2020-11-01 21:22:07 +09:00
commands Don't use custom OID symbols in pg_type.dat, either. 2020-10-29 13:33:38 -04:00
executor In INSERT/UPDATE, use the table's real tuple descriptor as target. 2020-10-26 11:36:53 -04:00
foreign Update copyrights for 2020 2020-01-01 12:21:45 -05:00
jit llvmjit: Work around bug in LLVM 3.9 causing crashes after 72559438f9. 2020-10-15 18:17:00 -07:00
lib Use pg_bitutils for HyperLogLog. 2020-07-30 09:14:23 -07:00
libpq Fix -Wcast-function-type warnings on Windows/MinGW 2020-10-21 08:17:51 +02:00
main Clean up includes of s_lock.h. 2020-06-18 19:41:05 -07:00
nodes Allow run-time pruning on nested Append/MergeAppend nodes 2020-11-02 13:46:56 +13:00
optimizer Allow run-time pruning on nested Append/MergeAppend nodes 2020-11-02 13:46:56 +13:00
parser Calculate extraUpdatedCols in query rewriter, not parser. 2020-10-28 13:47:02 -04:00
partitioning Allow run-time pruning on nested Append/MergeAppend nodes 2020-11-02 13:46:56 +13:00
po Translation updates 2020-05-18 12:49:30 +02:00
port Fix -Wcast-function-type warnings on Windows/MinGW 2020-10-21 08:17:51 +02:00
postmaster Track statistics for streaming of changes from ReorderBuffer. 2020-10-29 09:11:51 +05:30
regex Dial back -Wimplicit-fallthrough to level 3 2020-05-13 15:31:14 -04:00
replication Use Enum for top level logical replication message types. 2020-11-02 08:18:18 +05:30
rewrite Calculate extraUpdatedCols in query rewriter, not parser. 2020-10-28 13:47:02 -04:00
snowball code: replace most remaining uses of 'master'. 2020-07-08 13:24:35 -07:00
statistics Remove some more useless assignments. 2020-09-04 14:32:19 -04:00
storage Fix wrong data table horizon computation during backend startup. 2020-10-28 21:49:07 -07:00
tcop Fix bogus completion tag usage in walsender 2020-09-16 21:16:25 -03:00
tsearch Improve behavior of tsearch_readline(), and remove t_readline(). 2020-09-23 20:26:58 -04:00
utils Don't use custom OID symbols in pg_type.dat, either. 2020-10-29 13:33:38 -04:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
Makefile Update copyrights for 2020 2020-01-01 12:21:45 -05:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
nls.mk Add missing gettext triggers 2020-04-28 13:35:40 +02:00