On Sun, Sep 11, 2016 at 3:13 PM, Peter Geoghegan <p...@heroku.com> wrote: > * Please make this use the ".., + 1023" natural rounding trick that is > used in the similar traces that are removed: > >> +#ifdef TRACE_SORT >> + if (trace_sort) >> + elog(LOG, "using %d kB of memory for read buffers in %d tapes, %d kB >> per tape", >> + (int) (state->availMem / 1024), maxTapes, (int) (per_tape * >> BLCKSZ) / 1024); >> +#endif
Also, please remove the int cast, and use INT64_FORMAT. Again, this should match existing trace_sort traces concerning batch memory. -- Peter Geoghegan -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers