Skip to content

Commit bd8a356

Browse files
committed
Suppress compiler warning (pid_t isn't int everywhere)
1 parent b4594a6 commit bd8a356

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/backend/storage/ipc/standby.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* Portions Copyright (c) 1994, Regents of the University of California
1616
*
1717
* IDENTIFICATION
18-
* $PostgreSQL: pgsql/src/backend/storage/ipc/standby.c,v 1.1 2009/12/19 01:32:35 sriggs Exp $
18+
* $PostgreSQL: pgsql/src/backend/storage/ipc/standby.c,v 1.2 2009/12/31 22:07:36 tgl Exp $
1919
*
2020
*-------------------------------------------------------------------------
2121
*/
@@ -234,17 +234,17 @@ ResolveRecoveryConflictWithVirtualXIDs(VirtualTransactionId *waitlist,
234234
{
235235
case CONFLICT_MODE_FATAL:
236236
elog(trace_recovery(DEBUG1),
237-
"recovery disconnects session with pid %d because of conflict with %s",
238-
pid,
239-
reason);
237+
"recovery disconnects session with pid %ld because of conflict with %s",
238+
(long) pid,
239+
reason);
240240
break;
241241
case CONFLICT_MODE_ERROR:
242242
elog(trace_recovery(DEBUG1),
243-
"recovery cancels virtual transaction %u/%u pid %d because of conflict with %s",
244-
waitlist->backendId,
245-
waitlist->localTransactionId,
246-
pid,
247-
reason);
243+
"recovery cancels virtual transaction %u/%u pid %ld because of conflict with %s",
244+
waitlist->backendId,
245+
waitlist->localTransactionId,
246+
(long) pid,
247+
reason);
248248
break;
249249
default:
250250
/* No conflict pending, so fall through */

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