Fix for pg_upgrade status display

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>
Subject: Fix for pg_upgrade status display
Date: 2012-12-06 03:04:53
Message-ID: 20121206030453.GJ30893@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Pg_upgrade displays file names during copy and database names during
dump/restore. Andrew Dunstan identified three bugs:

* long file names were being truncated to 60 _leading_ characters, which
often do not change for long file names

* file names were truncated to 60 characters in log files

* carriage returns were being output to log files

The attached patch fixes these --- it prints 60 _trailing_ characters to
the status display, and full path names without carriage returns to log
files.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

Attachment Content-Type Size
pg_upgrade.diff text/x-diff 5.7 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jan Wieck 2012-12-06 03:16:23 Re: autovacuum truncate exclusive lock round two
Previous Message Alvaro Herrera 2012-12-06 02:12:09 Re: Forgotten argument description in header of index_create