Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd0e750c

Browse files
committed
Rename PQtraceSetFlags() to PQsetTraceFlags().
We have a dozen PQset*() functions. PQresultSetInstanceData() and thiswere the libpq setter functions having a different word order. Adoptthe majority word order.Reviewed by Alvaro Herrera and Robert Haas, though this choice of namewas not unanimous.Discussion:https://postgr.es/m/20210605060555.GA216695@rfd.leadboat.com
1 parent04539e7 commitd0e750c

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

‎doc/src/sgml/libpq.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6533,14 +6533,14 @@ void PQtrace(PGconn *conn, FILE *stream);
65336533
</listitem>
65346534
</varlistentry>
65356535

6536-
<varlistentry id="libpq-PQtraceSetFlags">
6537-
<term><function>PQtraceSetFlags</function><indexterm><primary>PQtraceSetFlags</primary></indexterm></term>
6536+
<varlistentry id="libpq-PQsetTraceFlags">
6537+
<term><function>PQsetTraceFlags</function><indexterm><primary>PQtraceSetFlags</primary></indexterm></term>
65386538

65396539
<listitem>
65406540
<para>
65416541
Controls the tracing behavior of client/server communication.
65426542
<synopsis>
6543-
voidPQtraceSetFlags(PGconn *conn, int flags);
6543+
voidPQsetTraceFlags(PGconn *conn, int flags);
65446544
</synopsis>
65456545
</para>
65466546

‎src/interfaces/libpq/exports.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,5 +183,5 @@ PQenterPipelineMode 180
183183
PQexitPipelineMode 181
184184
PQpipelineSync 182
185185
PQpipelineStatus 183
186-
PQtraceSetFlags 184
186+
PQsetTraceFlags 184
187187
PQmblenBounded 185

‎src/interfaces/libpq/fe-trace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ PQuntrace(PGconn *conn)
6161

6262
/* Set flags for current tracing session */
6363
void
64-
PQtraceSetFlags(PGconn*conn,intflags)
64+
PQsetTraceFlags(PGconn*conn,intflags)
6565
{
6666
if (conn==NULL)
6767
return;

‎src/interfaces/libpq/libpq-fe.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ extern void PQuntrace(PGconn *conn);
403403
#definePQTRACE_SUPPRESS_TIMESTAMPS(1<<0)
404404
/* redact portions of some messages, for testing frameworks */
405405
#definePQTRACE_REGRESS_MODE(1<<1)
406-
externvoidPQtraceSetFlags(PGconn*conn,intflags);
406+
externvoidPQsetTraceFlags(PGconn*conn,intflags);
407407

408408
/* === in fe-exec.c === */
409409

‎src/test/modules/libpq_pipeline/libpq_pipeline.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1326,7 +1326,7 @@ main(int argc, char **argv)
13261326
setvbuf(trace,NULL,PG_IOLBF,0);
13271327

13281328
PQtrace(conn,trace);
1329-
PQtraceSetFlags(conn,
1329+
PQsetTraceFlags(conn,
13301330
PQTRACE_SUPPRESS_TIMESTAMPS |PQTRACE_REGRESS_MODE);
13311331
}
13321332

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp