switch (dest)
{ case DestRemote: case DestRemoteExecute: case DestRemoteSimple:
len = BuildQueryCompletionString(completionTag, qc,
force_undecorated_output);
pq_putmessage(PqMsg_CommandComplete, completionTag, len + 1);
case DestNone: case DestDebug: case DestSPI: case DestTuplestore: case DestIntoRel: case DestCopyOut: case DestSQLFunction: case DestTransientRel: case DestTupleQueue: case DestExplainSerialize: break;
}
}
/* ---------------- *NullCommand-telldestthatanemptyquerystringwasrecognized * *Thisensuresthattherewillbearecognizableendtotheresponse *toanExecutemessageintheextendedqueryprotocol. *----------------
*/ void
NullCommand(CommandDest dest)
{ switch (dest)
{ case DestRemote: case DestRemoteExecute: case DestRemoteSimple:
/* Tell the FE that we saw an empty query string */
pq_putemptymessage(PqMsg_EmptyQueryResponse); break;
case DestNone: case DestDebug: case DestSPI: case DestTuplestore: case DestIntoRel: case DestCopyOut: case DestSQLFunction: case DestTransientRel: case DestTupleQueue: case DestExplainSerialize: break;
}
}
/* ---------------- *ReadyForQuery-telldestthatwearereadyforanewquery * *TheReadyForQuerymessageissentsothattheFEcantellwhen *wearedoneprocessingaquerystring. *Inversions3.0andup,italsocarriesatransactionstateindicator. * *Notethatbyflushingthestdiobufferhere,wecanavoiddoingit *mostotherplacesandthusreducethenumberofseparatepacketssent. *----------------
*/ void
ReadyForQuery(CommandDest dest)
{ switch (dest)
{ case DestRemote: case DestRemoteExecute: case DestRemoteSimple:
{
StringInfoData buf;
pq_beginmessage(&buf, PqMsg_ReadyForQuery);
pq_sendbyte(&buf, TransactionBlockStatusCode());
pq_endmessage(&buf);
} /* Flush output at end of cycle in any case. */
pq_flush(); break;
case DestNone: case DestDebug: case DestSPI: case DestTuplestore: case DestIntoRel: case DestCopyOut: case DestSQLFunction: case DestTransientRel: case DestTupleQueue: case DestExplainSerialize: break;
}
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet am 2026-08-08)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.