Re: pset, NULL, and COPY-reporting

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: John Bell <jzb(at)ornl(dot)gov>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: pset, NULL, and COPY-reporting
Date: 2015-06-03 21:12:13
Message-ID: 28183.1433365933@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"David G. Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> writes:
> On Tuesday, June 2, 2015, John Bell <jzb(at)ornl(dot)gov> wrote:
>> Due to some level of ignorance at install-time, our "psql" clients on two
>> different production computers appear to have different values for /null/:

> You can decide what to have null output as using pset variables. See the
> documentation. The default could have changed between versions, maybe...

No, I don't think so --- but possibly one machine has a setting in
~/.psqlrc that the other doesn't.

>> At the same time, one of these computers reports the number of rows
>> read-in with
>> a "\copy TABLE FROM FILE" command as "COPY 123", while the other computer
>> does not.

> Pretty sure the copy behavior is always on but version dependent.

Yeah, psql 9.4 started doing that.

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message hydra 2015-06-04 04:49:31 replication consistency checking
Previous Message David G. Johnston 2015-06-03 18:41:54 Re: pset, NULL, and COPY-reporting