1996-10-27 10:55:05 +01:00
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Makefile--
|
2002-04-15 07:22:04 +02:00
|
|
|
# Makefile for backend/commands
|
1996-10-27 10:55:05 +01:00
|
|
|
#
|
|
|
|
# IDENTIFICATION
|
2010-09-20 22:08:53 +02:00
|
|
|
# src/backend/commands/Makefile
|
1996-10-27 10:55:05 +01:00
|
|
|
#
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
2000-08-31 18:12:35 +02:00
|
|
|
subdir = src/backend/commands
|
|
|
|
top_builddir = ../../..
|
|
|
|
include $(top_builddir)/src/Makefile.global
|
1996-10-27 10:55:05 +01:00
|
|
|
|
2019-11-05 23:41:07 +01:00
|
|
|
OBJS = \
|
|
|
|
aggregatecmds.o \
|
|
|
|
alter.o \
|
|
|
|
amcmds.o \
|
|
|
|
analyze.o \
|
|
|
|
async.o \
|
|
|
|
cluster.o \
|
|
|
|
collationcmds.o \
|
|
|
|
comment.o \
|
|
|
|
constraint.o \
|
|
|
|
conversioncmds.o \
|
|
|
|
copy.o \
|
Split copy.c into four files.
Copy.c has grown really large. Split it into more manageable parts:
- copy.c now contains only a few functions that are common to COPY FROM
and COPY TO.
- copyto.c contains code for COPY TO.
- copyfrom.c contains code for initializing COPY FROM, and inserting the
tuples to the correct table.
- copyfromparse.c contains code for reading from the client/file/program,
and parsing the input text/CSV/binary format into tuples.
All of these parts are fairly complicated, and fairly independent of each
other. There is a patch being discussed to implement parallel COPY FROM,
which will add a lot of new code to the COPY FROM path, and another patch
which would allow INSERTs to use the same multi-insert machinery as COPY
FROM, both of which will require refactoring that code. With those two
patches, there's going to be a lot of code churn in copy.c anyway, so now
seems like a good time to do this refactoring.
The CopyStateData struct is also split. All the formatting options, like
FORMAT, QUOTE, ESCAPE, are put in a new CopyFormatOption struct, which
is used by both COPY FROM and TO. Other state data are kept in separate
CopyFromStateData and CopyToStateData structs.
Reviewed-by: Soumyadeep Chakraborty, Erik Rijkers, Vignesh C, Andres Freund
Discussion: https://www.postgresql.org/message-id/8e15b560-f387-7acc-ac90-763986617bfb%40iki.fi
2020-11-23 09:50:50 +01:00
|
|
|
copyfrom.o \
|
|
|
|
copyfromparse.o \
|
|
|
|
copyto.o \
|
2019-11-05 23:41:07 +01:00
|
|
|
createas.o \
|
|
|
|
dbcommands.o \
|
|
|
|
define.o \
|
|
|
|
discard.o \
|
|
|
|
dropcmds.o \
|
|
|
|
event_trigger.o \
|
|
|
|
explain.o \
|
|
|
|
extension.o \
|
|
|
|
foreigncmds.o \
|
|
|
|
functioncmds.o \
|
|
|
|
indexcmds.o \
|
|
|
|
lockcmds.o \
|
|
|
|
matview.o \
|
|
|
|
opclasscmds.o \
|
|
|
|
operatorcmds.o \
|
|
|
|
policy.o \
|
|
|
|
portalcmds.o \
|
|
|
|
prepare.o \
|
|
|
|
proclang.o \
|
|
|
|
publicationcmds.o \
|
|
|
|
schemacmds.o \
|
|
|
|
seclabel.o \
|
|
|
|
sequence.o \
|
|
|
|
statscmds.o \
|
|
|
|
subscriptioncmds.o \
|
|
|
|
tablecmds.o \
|
|
|
|
tablespace.o \
|
|
|
|
trigger.o \
|
|
|
|
tsearchcmds.o \
|
|
|
|
typecmds.o \
|
|
|
|
user.o \
|
|
|
|
vacuum.o \
|
2021-12-23 07:12:52 +01:00
|
|
|
vacuumparallel.o \
|
2019-11-05 23:41:07 +01:00
|
|
|
variable.o \
|
2024-04-11 15:30:32 +02:00
|
|
|
view.o
|
1996-10-27 10:55:05 +01:00
|
|
|
|
2008-02-19 11:30:09 +01:00
|
|
|
include $(top_srcdir)/src/backend/common.mk
|