Skip to content

Commit d0e750c

Browse files
committed
Rename PQtraceSetFlags() to PQsetTraceFlags().
We have a dozen PQset*() functions. PQresultSetInstanceData() and this were the libpq setter functions having a different word order. Adopt the majority word order. Reviewed by Alvaro Herrera and Robert Haas, though this choice of name was not unanimous. Discussion: https://postgr.es/m/20210605060555.GA216695@rfd.leadboat.com
1 parent 04539e7 commit d0e750c

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-
void PQtraceSetFlags(PGconn *conn, int flags);
6543+
void PQsetTraceFlags(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, int flags)
64+
PQsetTraceFlags(PGconn *conn, int flags)
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
#define PQTRACE_SUPPRESS_TIMESTAMPS (1<<0)
404404
/* redact portions of some messages, for testing frameworks */
405405
#define PQTRACE_REGRESS_MODE (1<<1)
406-
extern void PQtraceSetFlags(PGconn *conn, int flags);
406+
extern void PQsetTraceFlags(PGconn *conn, int flags);
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy