pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix portability issue in pg_audit.
3+ messages / 2 participants
[nested] [flat]

* pgsql: Fix portability issue in pg_audit.
@ 2015-05-14 17:22  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: Tom Lane @ 2015-05-14 17:22 UTC (permalink / raw)
  To: pgsql-committers

Fix portability issue in pg_audit.

"%ld" is not a portable way to print int64's.  This may explain the
buildfarm crashes we're seeing --- it seems to make dromedary happy,
at least.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/35a1e1d1593f4355c9d87bbc8208a8736801a607

Modified Files
--------------
contrib/pg_audit/pg_audit.c |   35 ++++++++++++++++++++---------------
1 file changed, 20 insertions(+), 15 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: pgsql: Fix portability issue in pg_audit.
@ 2015-05-14 20:10  Alvaro Herrera <alvherre@2ndquadrant.com>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: Alvaro Herrera @ 2015-05-14 20:10 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-committers

Tom Lane wrote:
> Fix portability issue in pg_audit.
> 
> "%ld" is not a portable way to print int64's.  This may explain the
> buildfarm crashes we're seeing --- it seems to make dromedary happy,
> at least.

FWIW you could use %zd for translatability, assuming we ever get
pg_audit translatable.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: pgsql: Fix portability issue in pg_audit.
@ 2015-05-14 20:15  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Alvaro Herrera <alvherre@2ndquadrant.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Tom Lane @ 2015-05-14 20:15 UTC (permalink / raw)
  To: Alvaro Herrera <alvherre@2ndquadrant.com>; +Cc: pgsql-committers

Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> Tom Lane wrote:
>> "%ld" is not a portable way to print int64's.  This may explain the
>> buildfarm crashes we're seeing --- it seems to make dromedary happy,
>> at least.

> FWIW you could use %zd for translatability, assuming we ever get
> pg_audit translatable.

Really?  z means size_t.

			regards, tom lane


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2015-05-14 20:15 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-05-14 17:22 pgsql: Fix portability issue in pg_audit. Tom Lane <tgl@sss.pgh.pa.us>
2015-05-14 20:10 ` Alvaro Herrera <alvherre@2ndquadrant.com>
2015-05-14 20:15   ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox