Move any code specific to log_destination=csvlog to its own file
authorMichael Paquier <michael@paquier.xyz>
Wed, 12 Jan 2022 06:03:48 +0000 (15:03 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 12 Jan 2022 06:03:48 +0000 (15:03 +0900)
commitbed6ed3de9b3e62d8c6ee034513d04d769091927
tree1edf6f09a379d4b9a4b44e72d5f30d0cc0447054
parentac7c80758a7ad6369aefce7406f08c689144ec4b
Move any code specific to log_destination=csvlog to its own file

The recent refactoring done in ac7c807 makes this move possible and
simple, as this just moves some code around.  This reduces the size of
elog.c by 7%.

Author: Michael Paquier, Sehrope Sarkuni
Reviewed-by: Nathan Bossart
Discussion: https://postgr.es/m/CAH7T-aqswBM6JWe4pDehi1uOiufqe06DJWaU5=X7dDLyqUExHg@mail.gmail.com

simply moves the routines related to csvlog into their own file
src/backend/utils/error/Makefile
src/backend/utils/error/csvlog.c [new file with mode: 0644]
src/backend/utils/error/elog.c