PostgreSQL Source Code  git master
CopyStateData Struct Reference

Data Fields

CopyDest copy_dest
 
FILE * copy_file
 
StringInfo fe_msgbuf
 
bool is_copy_from
 
bool reached_eof
 
EolType eol_type
 
int file_encoding
 
bool need_transcoding
 
bool encoding_embeds_ascii
 
Relation rel
 
QueryDescqueryDesc
 
Listattnumlist
 
char * filename
 
bool is_program
 
copy_data_source_cb data_source_cb
 
bool binary
 
bool freeze
 
bool csv_mode
 
bool header_line
 
char * null_print
 
int null_print_len
 
char * null_print_client
 
char * delim
 
char * quote
 
char * escape
 
Listforce_quote
 
bool force_quote_all
 
boolforce_quote_flags
 
Listforce_notnull
 
boolforce_notnull_flags
 
Listforce_null
 
boolforce_null_flags
 
bool convert_selectively
 
Listconvert_select
 
boolconvert_select_flags
 
NodewhereClause
 
const char * cur_relname
 
uint64 cur_lineno
 
const char * cur_attname
 
const char * cur_attval
 
MemoryContext copycontext
 
FmgrInfoout_functions
 
MemoryContext rowcontext
 
AttrNumber num_defaults
 
FmgrInfoin_functions
 
Oidtypioparams
 
int * defmap
 
ExprState ** defexprs
 
bool volatile_defexprs
 
Listrange_table
 
ExprStatequalexpr
 
TransitionCaptureStatetransition_capture
 
StringInfoData attribute_buf
 
int max_fields
 
char ** raw_fields
 
StringInfoData line_buf
 
bool line_buf_converted
 
bool line_buf_valid
 
char * raw_buf
 
int raw_buf_index
 
int raw_buf_len
 

Detailed Description

Definition at line 113 of file copy.c.

Field Documentation

◆ attnumlist

List* CopyStateData::attnumlist

◆ attribute_buf

StringInfoData CopyStateData::attribute_buf

◆ binary

◆ convert_select

List* CopyStateData::convert_select

Definition at line 153 of file copy.c.

Referenced by BeginCopy(), and ProcessCopyOptions().

◆ convert_select_flags

bool* CopyStateData::convert_select_flags

Definition at line 154 of file copy.c.

Referenced by BeginCopy(), and NextCopyFrom().

◆ convert_selectively

bool CopyStateData::convert_selectively

Definition at line 152 of file copy.c.

Referenced by BeginCopy(), and ProcessCopyOptions().

◆ copy_dest

◆ copy_file

FILE* CopyStateData::copy_file

◆ copycontext

MemoryContext CopyStateData::copycontext

Definition at line 166 of file copy.c.

Referenced by BeginCopy(), BeginCopyFrom(), BeginCopyTo(), and EndCopy().

◆ csv_mode

bool CopyStateData::csv_mode

◆ cur_attname

const char* CopyStateData::cur_attname

Definition at line 160 of file copy.c.

Referenced by BeginCopyFrom(), CopyFromErrorCallback(), and NextCopyFrom().

◆ cur_attval

const char* CopyStateData::cur_attval

Definition at line 161 of file copy.c.

Referenced by BeginCopyFrom(), CopyFromErrorCallback(), and NextCopyFrom().

◆ cur_lineno

uint64 CopyStateData::cur_lineno

◆ cur_relname

const char* CopyStateData::cur_relname

Definition at line 158 of file copy.c.

Referenced by BeginCopyFrom(), and CopyFromErrorCallback().

◆ data_source_cb

copy_data_source_cb CopyStateData::data_source_cb

Definition at line 134 of file copy.c.

Referenced by BeginCopyFrom(), and CopyGetData().

◆ defexprs

ExprState** CopyStateData::defexprs

Definition at line 181 of file copy.c.

Referenced by BeginCopyFrom(), and NextCopyFrom().

◆ defmap

int* CopyStateData::defmap

Definition at line 180 of file copy.c.

Referenced by BeginCopyFrom(), and NextCopyFrom().

◆ delim

◆ encoding_embeds_ascii

bool CopyStateData::encoding_embeds_ascii

Definition at line 126 of file copy.c.

Referenced by BeginCopy(), CopyAttributeOutCSV(), CopyAttributeOutText(), and CopyReadLineText().

◆ eol_type

EolType CopyStateData::eol_type

Definition at line 123 of file copy.c.

Referenced by BeginCopyFrom(), CopyReadLine(), and CopyReadLineText().

◆ escape

char* CopyStateData::escape

◆ fe_msgbuf

StringInfo CopyStateData::fe_msgbuf

◆ file_encoding

int CopyStateData::file_encoding

◆ filename

char* CopyStateData::filename

Definition at line 132 of file copy.c.

Referenced by BeginCopyFrom(), BeginCopyTo(), ClosePipeToProgram(), DoCopyTo(), and EndCopy().

◆ force_notnull

List* CopyStateData::force_notnull

Definition at line 148 of file copy.c.

Referenced by BeginCopy(), and ProcessCopyOptions().

◆ force_notnull_flags

bool* CopyStateData::force_notnull_flags

Definition at line 149 of file copy.c.

Referenced by BeginCopy(), and NextCopyFrom().

◆ force_null

List* CopyStateData::force_null

Definition at line 150 of file copy.c.

Referenced by BeginCopy(), and ProcessCopyOptions().

◆ force_null_flags

bool* CopyStateData::force_null_flags

Definition at line 151 of file copy.c.

Referenced by BeginCopy(), and NextCopyFrom().

◆ force_quote

List* CopyStateData::force_quote

Definition at line 145 of file copy.c.

Referenced by BeginCopy(), and ProcessCopyOptions().

◆ force_quote_all

bool CopyStateData::force_quote_all

Definition at line 146 of file copy.c.

Referenced by BeginCopy(), and ProcessCopyOptions().

◆ force_quote_flags

bool* CopyStateData::force_quote_flags

Definition at line 147 of file copy.c.

Referenced by BeginCopy(), and CopyOneRowTo().

◆ freeze

bool CopyStateData::freeze

Definition at line 136 of file copy.c.

Referenced by CopyFrom(), and ProcessCopyOptions().

◆ header_line

bool CopyStateData::header_line

Definition at line 138 of file copy.c.

Referenced by CopyTo(), NextCopyFromRawFields(), and ProcessCopyOptions().

◆ in_functions

FmgrInfo* CopyStateData::in_functions

Definition at line 178 of file copy.c.

Referenced by BeginCopyFrom(), and NextCopyFrom().

◆ is_copy_from

bool CopyStateData::is_copy_from

Definition at line 120 of file copy.c.

Referenced by ClosePipeToProgram(), and ProcessCopyOptions().

◆ is_program

bool CopyStateData::is_program

Definition at line 133 of file copy.c.

Referenced by BeginCopyFrom(), BeginCopyTo(), ClosePipeToProgram(), CopySendEndOfRow(), and EndCopy().

◆ line_buf

◆ line_buf_converted

bool CopyStateData::line_buf_converted

Definition at line 211 of file copy.c.

Referenced by BeginCopyFrom(), CopyFromErrorCallback(), and CopyReadLine().

◆ line_buf_valid

bool CopyStateData::line_buf_valid

Definition at line 212 of file copy.c.

Referenced by CopyFromErrorCallback(), CopyMultiInsertBufferFlush(), and CopyReadLine().

◆ max_fields

int CopyStateData::max_fields

Definition at line 200 of file copy.c.

Referenced by BeginCopyFrom(), CopyReadAttributesCSV(), and CopyReadAttributesText().

◆ need_transcoding

bool CopyStateData::need_transcoding

◆ null_print

char* CopyStateData::null_print

◆ null_print_client

char* CopyStateData::null_print_client

Definition at line 141 of file copy.c.

Referenced by CopyOneRowTo(), and CopyTo().

◆ null_print_len

int CopyStateData::null_print_len

Definition at line 140 of file copy.c.

Referenced by CopyReadAttributesCSV(), CopyReadAttributesText(), CopyTo(), and ProcessCopyOptions().

◆ num_defaults

AttrNumber CopyStateData::num_defaults

Definition at line 177 of file copy.c.

Referenced by BeginCopyFrom(), and NextCopyFrom().

◆ out_functions

FmgrInfo* CopyStateData::out_functions

Definition at line 171 of file copy.c.

Referenced by CopyOneRowTo(), and CopyTo().

◆ qualexpr

ExprState* CopyStateData::qualexpr

Definition at line 184 of file copy.c.

Referenced by CopyFrom().

◆ queryDesc

QueryDesc* CopyStateData::queryDesc

Definition at line 130 of file copy.c.

Referenced by BeginCopy(), CopyTo(), and EndCopyTo().

◆ quote

char* CopyStateData::quote

◆ range_table

List* CopyStateData::range_table

Definition at line 183 of file copy.c.

Referenced by BeginCopyFrom(), and CopyFrom().

◆ raw_buf

char* CopyStateData::raw_buf

Definition at line 222 of file copy.c.

Referenced by BeginCopyFrom(), CopyLoadRawBuf(), and CopyReadLineText().

◆ raw_buf_index

int CopyStateData::raw_buf_index

Definition at line 223 of file copy.c.

Referenced by BeginCopyFrom(), CopyLoadRawBuf(), CopyReadLine(), and CopyReadLineText().

◆ raw_buf_len

int CopyStateData::raw_buf_len

Definition at line 224 of file copy.c.

Referenced by BeginCopyFrom(), CopyLoadRawBuf(), CopyReadLine(), and CopyReadLineText().

◆ raw_fields

char** CopyStateData::raw_fields

◆ reached_eof

bool CopyStateData::reached_eof

Definition at line 121 of file copy.c.

Referenced by BeginCopyFrom(), ClosePipeToProgram(), and CopyGetData().

◆ rel

Relation CopyStateData::rel

Definition at line 129 of file copy.c.

Referenced by BeginCopy(), BeginCopyFrom(), CopyFrom(), CopyTo(), DoCopy(), and NextCopyFrom().

◆ rowcontext

MemoryContext CopyStateData::rowcontext

Definition at line 172 of file copy.c.

Referenced by CopyOneRowTo(), and CopyTo().

◆ transition_capture

TransitionCaptureState* CopyStateData::transition_capture

Definition at line 186 of file copy.c.

Referenced by CopyFrom(), and CopyMultiInsertBufferFlush().

◆ typioparams

Oid* CopyStateData::typioparams

Definition at line 179 of file copy.c.

Referenced by BeginCopyFrom(), and NextCopyFrom().

◆ volatile_defexprs

bool CopyStateData::volatile_defexprs

Definition at line 182 of file copy.c.

Referenced by BeginCopyFrom(), and CopyFrom().

◆ whereClause

Node* CopyStateData::whereClause

Definition at line 155 of file copy.c.

Referenced by CopyFrom(), and DoCopy().


The documentation for this struct was generated from the following file: