PostgreSQL Source Code
git master
|
Go to the source code of this file.
void pq_beginmessage | ( | StringInfo | buf, |
char | msgtype | ||
) |
Definition at line 88 of file pqformat.c.
References buf, and initStringInfo().
Referenced by bbsink_copystream_archive_contents(), bbsink_copystream_begin_archive(), bbsink_copystream_begin_manifest(), bbsink_copystream_end_archive(), NotifyMyFrontEnd(), pgstat_progress_parallel_incr_param(), PostgresMain(), printsimple(), printsimple_startup(), ReadyForQuery(), ReceiveCopyBegin(), ReportGUCOption(), send_message_to_frontend(), sendAuthRequest(), SendCopyBegin(), SendCopyOutResponse(), SendFunctionResult(), SendNegotiateProtocolVersion(), SendTimeLineHistory(), StartLogicalReplication(), StartReplication(), and UploadManifest().
void pq_beginmessage_reuse | ( | StringInfo | buf, |
char | msgtype | ||
) |
Definition at line 109 of file pqformat.c.
References buf, and resetStringInfo().
Referenced by exec_describe_statement_message(), printtup(), SendRowDescriptionMessage(), and serializeAnalyzeReceive().
void pq_begintypsend | ( | StringInfo | buf | ) |
Definition at line 326 of file pqformat.c.
References appendStringInfoCharMacro, buf, and initStringInfo().
Referenced by array_agg_array_serialize(), array_agg_serialize(), array_send(), boolsend(), box_send(), cash_send(), charsend(), cidsend(), circle_send(), complex_send(), cstring_send(), cube_send(), date_send(), enum_send(), float4send(), float8send(), hstore_send(), int2send(), int4send(), int8_avg_serialize(), int8send(), interval_avg_serialize(), interval_send(), json_send(), jsonb_send(), jsonpath_send(), line_send(), lquery_send(), lseg_send(), ltree_send(), ltxtq_send(), macaddr8_send(), macaddr_send(), multirange_send(), namesend(), network_send(), numeric_avg_serialize(), numeric_poly_serialize(), numeric_send(), numeric_serialize(), oidsend(), path_send(), pg_lsn_send(), pg_snapshot_send(), point_send(), poly_send(), range_send(), record_send(), string_agg_serialize(), textsend(), tidsend(), time_send(), timestamp_send(), timestamptz_send(), timetz_send(), tsquerysend(), tsvectorsend(), unknownsend(), uuid_send(), varbit_send(), void_send(), xid8send(), xidsend(), and xml_send().
void pq_copymsgbytes | ( | StringInfo | msg, |
char * | buf, | ||
int | datalen | ||
) |
Definition at line 528 of file pqformat.c.
References buf, StringInfoData::cursor, StringInfoData::data, ereport, errcode(), errmsg(), ERROR, and StringInfoData::len.
Referenced by bit_recv(), bytearecv(), CopyGetData(), logicalrep_read_tuple(), pq_getmsgint(), pq_getmsgint64(), and varbit_recv().
void pq_endmessage | ( | StringInfo | buf | ) |
Definition at line 296 of file pqformat.c.
References buf, pfree(), and pq_putmessage.
Referenced by bbsink_copystream_archive_contents(), bbsink_copystream_begin_archive(), bbsink_copystream_begin_manifest(), bbsink_copystream_end_archive(), HandleParallelMessage(), NotifyMyFrontEnd(), pgstat_progress_parallel_incr_param(), PostgresMain(), printsimple(), printsimple_startup(), ReadyForQuery(), ReceiveCopyBegin(), ReportGUCOption(), send_message_to_frontend(), sendAuthRequest(), SendCopyBegin(), SendCopyOutResponse(), SendFunctionResult(), SendNegotiateProtocolVersion(), SendTimeLineHistory(), StartLogicalReplication(), and StartReplication().
void pq_endmessage_reuse | ( | StringInfo | buf | ) |
Definition at line 314 of file pqformat.c.
References buf, and pq_putmessage.
Referenced by exec_describe_statement_message(), printtup(), SendRowDescriptionMessage(), and UploadManifest().
bytea* pq_endtypsend | ( | StringInfo | buf | ) |
Definition at line 346 of file pqformat.c.
References Assert, buf, SET_VARSIZE, and VARHDRSZ.
Referenced by array_agg_array_serialize(), array_agg_serialize(), array_send(), boolsend(), box_send(), cash_send(), charsend(), cidsend(), circle_send(), complex_send(), cstring_send(), cube_send(), date_send(), enum_send(), float4send(), float8send(), hstore_send(), int2send(), int4send(), int8_avg_serialize(), int8send(), interval_avg_serialize(), interval_send(), json_send(), jsonb_send(), jsonpath_send(), line_send(), lquery_send(), lseg_send(), ltree_send(), ltxtq_send(), macaddr8_send(), macaddr_send(), multirange_send(), namesend(), network_send(), numeric_avg_serialize(), numeric_poly_serialize(), numeric_send(), numeric_serialize(), oidsend(), path_send(), pg_lsn_send(), pg_snapshot_send(), point_send(), poly_send(), range_send(), record_send(), string_agg_serialize(), textsend(), tidsend(), time_send(), timestamp_send(), timestamptz_send(), timetz_send(), tsquerysend(), tsvectorsend(), unknownsend(), uuid_send(), varbit_send(), void_send(), xid8send(), xidsend(), and xml_send().
int pq_getmsgbyte | ( | StringInfo | msg | ) |
Definition at line 399 of file pqformat.c.
References StringInfoData::cursor, StringInfoData::data, ereport, errcode(), errmsg(), ERROR, and StringInfoData::len.
Referenced by apply_dispatch(), array_agg_deserialize(), boolrecv(), charrecv(), HandleParallelApplyMessage(), HandleParallelMessage(), LogicalParallelApplyLoop(), logicalrep_read_attrs(), logicalrep_read_commit(), logicalrep_read_commit_prepared(), logicalrep_read_delete(), logicalrep_read_insert(), logicalrep_read_prepare_common(), logicalrep_read_rel(), logicalrep_read_rollback_prepared(), logicalrep_read_stream_commit(), logicalrep_read_stream_start(), logicalrep_read_tuple(), logicalrep_read_update(), LogicalRepApplyLoop(), macaddr8_recv(), macaddr_recv(), network_recv(), path_recv(), PostgresMain(), pq_parse_errornotice(), ProcessStandbyMessage(), ProcessStandbyReplyMessage(), range_recv(), and XLogWalRcvProcessMsg().
const char* pq_getmsgbytes | ( | StringInfo | msg, |
int | datalen | ||
) |
Definition at line 508 of file pqformat.c.
References StringInfoData::cursor, StringInfoData::data, ereport, errcode(), errmsg(), ERROR, and StringInfoData::len.
Referenced by array_agg_array_deserialize(), array_agg_deserialize(), CheckSASLAuth(), exec_bind_message(), multirange_recv(), parse_fcall_arguments(), range_recv(), string_agg_deserialize(), uuid_recv(), and xml_recv().
void pq_getmsgend | ( | StringInfo | msg | ) |
Definition at line 635 of file pqformat.c.
References StringInfoData::cursor, ereport, errcode(), errmsg(), ERROR, and StringInfoData::len.
Referenced by array_agg_array_deserialize(), array_agg_deserialize(), CheckSASLAuth(), exec_bind_message(), HandleFunctionRequest(), HandleParallelMessage(), int8_avg_deserialize(), interval_avg_deserialize(), multirange_recv(), numeric_avg_deserialize(), numeric_deserialize(), numeric_poly_deserialize(), PostgresMain(), pq_parse_errornotice(), range_recv(), and string_agg_deserialize().
float4 pq_getmsgfloat4 | ( | StringInfo | msg | ) |
Definition at line 469 of file pqformat.c.
References i, and pq_getmsgint().
Referenced by float4recv().
float8 pq_getmsgfloat8 | ( | StringInfo | msg | ) |
Definition at line 488 of file pqformat.c.
References i, and pq_getmsgint64().
Referenced by box_recv(), circle_recv(), complex_recv(), cube_recv(), float8recv(), line_recv(), lseg_recv(), path_recv(), point_recv(), and poly_recv().
unsigned int pq_getmsgint | ( | StringInfo | msg, |
int | b | ||
) |
Definition at line 415 of file pqformat.c.
References b, elog, ERROR, pg_ntoh16, pg_ntoh32, and pq_copymsgbytes().
Referenced by array_agg_array_deserialize(), array_agg_deserialize(), array_recv(), bit_recv(), CheckSASLAuth(), cidrecv(), cube_recv(), date_recv(), exec_bind_message(), handle_streamed_transaction(), HandleFunctionRequest(), HandleParallelMessage(), hstore_recv(), int2recv(), int4recv(), interval_avg_deserialize(), interval_recv(), jsonb_recv(), jsonpath_recv(), logicalrep_read_attrs(), logicalrep_read_begin(), logicalrep_read_begin_prepare(), logicalrep_read_commit_prepared(), logicalrep_read_delete(), logicalrep_read_insert(), logicalrep_read_prepare_common(), logicalrep_read_rel(), logicalrep_read_rollback_prepared(), logicalrep_read_stream_abort(), logicalrep_read_stream_commit(), logicalrep_read_stream_start(), logicalrep_read_truncate(), logicalrep_read_tuple(), logicalrep_read_typ(), logicalrep_read_update(), lquery_recv(), ltree_recv(), ltxtq_recv(), multirange_recv(), numeric_avg_deserialize(), numeric_deserialize(), numeric_recv(), numericvar_deserialize(), oidrecv(), parse_fcall_arguments(), path_recv(), pg_snapshot_recv(), poly_recv(), PostgresMain(), pq_getmsgfloat4(), ProcessStandbyHSFeedbackMessage(), range_recv(), ReadArrayBinary(), record_recv(), string_agg_deserialize(), tidrecv(), timetz_recv(), tsqueryrecv(), tsvectorrecv(), varbit_recv(), and xidrecv().
int64 pq_getmsgint64 | ( | StringInfo | msg | ) |
Definition at line 453 of file pqformat.c.
References pg_ntoh64, and pq_copymsgbytes().
Referenced by array_agg_deserialize(), cash_recv(), HandleParallelMessage(), int8_avg_deserialize(), int8recv(), interval_avg_deserialize(), interval_recv(), logicalrep_read_begin(), logicalrep_read_begin_prepare(), logicalrep_read_commit(), logicalrep_read_commit_prepared(), logicalrep_read_origin(), logicalrep_read_prepare_common(), logicalrep_read_rollback_prepared(), logicalrep_read_stream_abort(), logicalrep_read_stream_commit(), LogicalRepApplyLoop(), numeric_avg_deserialize(), numeric_deserialize(), numeric_poly_deserialize(), pg_lsn_recv(), pg_snapshot_recv(), pq_getmsgfloat8(), ProcessStandbyHSFeedbackMessage(), ProcessStandbyReplyMessage(), time_recv(), timestamp_recv(), timestamptz_recv(), timetz_recv(), xid8recv(), and XLogWalRcvProcessMsg().
const char* pq_getmsgrawstring | ( | StringInfo | msg | ) |
Definition at line 608 of file pqformat.c.
References StringInfoData::cursor, StringInfoData::data, ereport, errcode(), errmsg(), ERROR, StringInfoData::len, and str.
Referenced by CheckSASLAuth(), HandleParallelMessage(), and pq_parse_errornotice().
const char* pq_getmsgstring | ( | StringInfo | msg | ) |
Definition at line 579 of file pqformat.c.
References StringInfoData::cursor, StringInfoData::data, ereport, errcode(), errmsg(), ERROR, StringInfoData::len, pg_client_to_server(), and str.
Referenced by CopyGetData(), exec_bind_message(), HandleUploadManifestPacket(), logicalrep_read_attrs(), logicalrep_read_begin_prepare(), logicalrep_read_commit_prepared(), logicalrep_read_namespace(), logicalrep_read_origin(), logicalrep_read_prepare_common(), logicalrep_read_rel(), logicalrep_read_rollback_prepared(), logicalrep_read_typ(), PostgresMain(), tsqueryrecv(), and tsvectorrecv().
char* pq_getmsgtext | ( | StringInfo | msg, |
int | rawbytes, | ||
int * | nbytes | ||
) |
Definition at line 546 of file pqformat.c.
References StringInfoData::cursor, StringInfoData::data, ereport, errcode(), errmsg(), ERROR, StringInfoData::len, palloc(), pg_client_to_server(), and str.
Referenced by bpcharrecv(), cstring_recv(), enum_recv(), hstore_recv(), json_recv(), jsonb_recv(), jsonpath_recv(), lquery_recv(), ltree_recv(), ltxtq_recv(), namerecv(), textrecv(), unknownrecv(), and varcharrecv().
void pq_putemptymessage | ( | char | msgtype | ) |
Definition at line 388 of file pqformat.c.
References pq_putmessage.
Referenced by exec_bind_message(), exec_describe_portal_message(), exec_describe_statement_message(), exec_execute_message(), exec_parse_message(), NullCommand(), PostgresMain(), SendCopyDone(), and SendCopyEnd().
void pq_puttextmessage | ( | char | msgtype, |
const char * | str | ||
) |
Definition at line 367 of file pqformat.c.
References pfree(), pg_server_to_client(), pq_putmessage, and str.
Referenced by bbsink_copystream_begin_backup(), and SendXlogRecPtrResult().
void pq_send_ascii_string | ( | StringInfo | buf, |
const char * | str | ||
) |
Definition at line 227 of file pqformat.c.
References appendStringInfoChar(), appendStringInfoCharMacro, buf, IS_HIGHBIT_SET, and str.
Referenced by err_sendstring().
|
inlinestatic |
Definition at line 160 of file pqformat.h.
References buf, and pq_sendint8().
Referenced by array_agg_serialize(), bbsink_copystream_archive_contents(), bbsink_copystream_begin_archive(), bbsink_copystream_begin_manifest(), bbsink_copystream_end_archive(), boolsend(), charsend(), logicalrep_write_attrs(), logicalrep_write_begin(), logicalrep_write_begin_prepare(), logicalrep_write_commit(), logicalrep_write_commit_prepared(), logicalrep_write_delete(), logicalrep_write_insert(), logicalrep_write_message(), logicalrep_write_namespace(), logicalrep_write_origin(), logicalrep_write_prepare_common(), logicalrep_write_rel(), logicalrep_write_rollback_prepared(), logicalrep_write_stream_abort(), logicalrep_write_stream_commit(), logicalrep_write_stream_start(), logicalrep_write_stream_stop(), logicalrep_write_truncate(), logicalrep_write_tuple(), logicalrep_write_typ(), logicalrep_write_update(), macaddr8_send(), macaddr_send(), network_send(), path_send(), range_send(), ReadyForQuery(), ReceiveCopyBegin(), send_feedback(), send_message_to_frontend(), SendCopyBegin(), SendCopyOutResponse(), StartLogicalReplication(), StartReplication(), tsvectorsend(), UploadManifest(), WalSndKeepalive(), WalSndPrepareWrite(), XLogSendPhysical(), XLogWalRcvSendHSFeedback(), and XLogWalRcvSendReply().
void pq_sendbytes | ( | StringInfo | buf, |
const void * | data, | ||
int | datalen | ||
) |
Definition at line 126 of file pqformat.c.
References appendBinaryStringInfo(), buf, and data.
Referenced by array_agg_array_serialize(), array_agg_serialize(), array_send(), logicalrep_write_message(), logicalrep_write_tuple(), multirange_send(), printtup(), range_send(), record_send(), sendAuthRequest(), SendFunctionResult(), SendTimeLineHistory(), serializeAnalyzeReceive(), string_agg_serialize(), uuid_send(), and varbit_send().
void pq_sendcountedtext | ( | StringInfo | buf, |
const char * | str, | ||
int | slen | ||
) |
Definition at line 142 of file pqformat.c.
References appendBinaryStringInfoNT(), buf, pfree(), pg_server_to_client(), pq_sendint32(), and str.
Referenced by logicalrep_write_tuple(), printsimple(), printtup(), SendFunctionResult(), and serializeAnalyzeReceive().
void pq_sendfloat4 | ( | StringInfo | buf, |
float4 | f | ||
) |
Definition at line 252 of file pqformat.c.
References buf, i, and pq_sendint32().
Referenced by float4send().
void pq_sendfloat8 | ( | StringInfo | buf, |
float8 | f | ||
) |
Definition at line 276 of file pqformat.c.
References buf, i, and pq_sendint64().
Referenced by box_send(), circle_send(), complex_send(), cube_send(), float8send(), line_send(), lseg_send(), path_send(), point_send(), and poly_send().
|
inlinestatic |
Definition at line 171 of file pqformat.h.
References b, buf, elog, ERROR, i, pq_sendint16(), pq_sendint32(), and pq_sendint8().
Referenced by logicalrep_write_tuple(), and string_agg_serialize().
|
inlinestatic |
Definition at line 136 of file pqformat.h.
References buf, enlargeStringInfo(), i, and pq_writeint16().
Referenced by array_agg_serialize(), exec_describe_statement_message(), int2send(), logicalrep_write_attrs(), logicalrep_write_tuple(), numeric_send(), numericvar_serialize(), pq_sendint(), printsimple(), printsimple_startup(), printtup(), ReceiveCopyBegin(), SendCopyBegin(), SendCopyOutResponse(), SendRowDescriptionMessage(), SendTimeLineHistory(), serializeAnalyzeReceive(), StartLogicalReplication(), StartReplication(), tidsend(), tsquerysend(), tsvectorsend(), and UploadManifest().
|
inlinestatic |
Definition at line 144 of file pqformat.h.
References buf, enlargeStringInfo(), i, and pq_writeint32().
Referenced by array_agg_array_serialize(), array_agg_serialize(), array_send(), cidsend(), cube_send(), date_send(), exec_describe_statement_message(), hstore_send(), int4send(), interval_avg_serialize(), interval_send(), logicalrep_write_attrs(), logicalrep_write_begin(), logicalrep_write_begin_prepare(), logicalrep_write_commit_prepared(), logicalrep_write_delete(), logicalrep_write_insert(), logicalrep_write_message(), logicalrep_write_prepare_common(), logicalrep_write_rel(), logicalrep_write_rollback_prepared(), logicalrep_write_stream_abort(), logicalrep_write_stream_commit(), logicalrep_write_stream_start(), logicalrep_write_truncate(), logicalrep_write_typ(), logicalrep_write_update(), multirange_send(), NotifyMyFrontEnd(), numeric_avg_serialize(), numeric_serialize(), numericvar_serialize(), oidsend(), path_send(), pg_snapshot_send(), pgstat_progress_parallel_incr_param(), poly_send(), PostgresMain(), pq_sendcountedtext(), pq_sendfloat4(), pq_sendint(), printsimple(), printsimple_startup(), printtup(), range_send(), record_send(), sendAuthRequest(), SendFunctionResult(), SendNegotiateProtocolVersion(), SendTimeLineHistory(), serializeAnalyzeReceive(), tidsend(), timetz_send(), tsquerysend(), tsvectorsend(), varbit_send(), xidsend(), and XLogWalRcvSendHSFeedback().
|
inlinestatic |
Definition at line 152 of file pqformat.h.
References buf, enlargeStringInfo(), i, and pq_writeint64().
Referenced by array_agg_serialize(), bbsink_copystream_archive_contents(), bbsink_copystream_end_archive(), cash_send(), int8_avg_serialize(), int8send(), interval_avg_serialize(), interval_send(), logicalrep_write_begin(), logicalrep_write_begin_prepare(), logicalrep_write_commit(), logicalrep_write_commit_prepared(), logicalrep_write_message(), logicalrep_write_origin(), logicalrep_write_prepare_common(), logicalrep_write_rollback_prepared(), logicalrep_write_stream_abort(), logicalrep_write_stream_commit(), numeric_avg_serialize(), numeric_poly_serialize(), numeric_serialize(), pg_lsn_send(), pg_snapshot_send(), pgstat_progress_parallel_incr_param(), pq_sendfloat8(), send_feedback(), time_send(), timestamp_send(), timestamptz_send(), timetz_send(), WalSndKeepalive(), WalSndPrepareWrite(), WalSndWriteData(), xid8send(), XLogSendPhysical(), XLogWalRcvSendHSFeedback(), and XLogWalRcvSendReply().
|
inlinestatic |
Definition at line 128 of file pqformat.h.
References buf, enlargeStringInfo(), i, and pq_writeint8().
Referenced by jsonb_send(), jsonpath_send(), logicalrep_write_message(), logicalrep_write_truncate(), lquery_send(), ltree_send(), ltxtq_send(), pq_sendbyte(), pq_sendint(), and tsquerysend().
void pq_sendstring | ( | StringInfo | buf, |
const char * | str | ||
) |
Definition at line 195 of file pqformat.c.
References appendBinaryStringInfoNT(), buf, pfree(), pg_server_to_client(), and str.
Referenced by bbsink_copystream_begin_archive(), err_sendstring(), logicalrep_write_attrs(), logicalrep_write_begin_prepare(), logicalrep_write_commit_prepared(), logicalrep_write_message(), logicalrep_write_namespace(), logicalrep_write_origin(), logicalrep_write_prepare_common(), logicalrep_write_rel(), logicalrep_write_rollback_prepared(), logicalrep_write_typ(), NotifyMyFrontEnd(), printsimple_startup(), ReportGUCOption(), SendNegotiateProtocolVersion(), and tsquerysend().
void pq_sendtext | ( | StringInfo | buf, |
const char * | str, | ||
int | slen | ||
) |
Definition at line 172 of file pqformat.c.
References appendBinaryStringInfo(), buf, pfree(), pg_server_to_client(), and str.
Referenced by cstring_send(), enum_send(), hstore_send(), json_send(), jsonb_send(), jsonpath_send(), lquery_send(), ltree_send(), ltxtq_send(), namesend(), textsend(), tsvectorsend(), unknownsend(), and xml_send().
|
inlinestatic |
Definition at line 60 of file pqformat.h.
References Assert, buf, i, and pg_hton16.
Referenced by pq_sendint16(), and SendRowDescriptionMessage().
|
inlinestatic |
Definition at line 74 of file pqformat.h.
References Assert, buf, i, and pg_hton32.
Referenced by pq_sendint32(), and SendRowDescriptionMessage().
|
inlinestatic |
Definition at line 88 of file pqformat.h.
References Assert, buf, i, and pg_hton64.
Referenced by pq_sendint64().
|
inlinestatic |
|
inlinestatic |
Definition at line 108 of file pqformat.h.
References Assert, buf, pfree(), pg_server_to_client(), and str.
Referenced by SendRowDescriptionMessage().