pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Making "invisible" characters visible ? (psql)
4+ messages / 3 participants
[nested] [flat]

* Making "invisible" characters visible ? (psql)
@ 2019-11-20 14:16 stan <stanb@panix.com>
  2019-11-20 14:22 ` Re: Making "invisible" characters visible ? (psql) Brian Dunavant <dunavant@gmail.com>
  0 siblings, 1 reply; 4+ messages in thread

From: stan @ 2019-11-20 14:16 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

I added a column to an existing table, so there should be nothing (actually
the default, I suppose) in this column for all existing rows.

However if I do:

select new_column from modified_table ;

I get the total number of rows in the table, but the lines on the screen
have no visible characters. I was expecting these to be nulls, and this
select to return nothing.

How can i make these "invisible" characters visible?

-- 
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
						-- Benjamin Franklin





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

* Re: Making "invisible" characters visible ? (psql)
  2019-11-20 14:16 Making "invisible" characters visible ? (psql) stan <stanb@panix.com>
@ 2019-11-20 14:22 ` Brian Dunavant <dunavant@gmail.com>
  2019-11-20 15:01   ` Re: Making "invisible" characters visible ? (psql) stan <stanb@panix.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Brian Dunavant @ 2019-11-20 14:22 UTC (permalink / raw)
  To: ; +Cc: pgsql-general@lists.postgresql.org

On Wed, Nov 20, 2019 at 9:16 AM stan <stanb@panix.com> wrote:

>
> How can i make these "invisible" characters visible?
>
>
>
In psql, by default it displays nulls as nothing.  You can specify what
they should display as with:

\pset null '<something>'

Chances are those are all nulls, and will now display as whatever you set
them to.  If they aren't, let us know.

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

* Re: Making "invisible" characters visible ? (psql)
  2019-11-20 14:16 Making "invisible" characters visible ? (psql) stan <stanb@panix.com>
  2019-11-20 14:22 ` Re: Making "invisible" characters visible ? (psql) Brian Dunavant <dunavant@gmail.com>
@ 2019-11-20 15:01   ` stan <stanb@panix.com>
  2019-11-20 15:18     ` Re: Making "invisible" characters visible ? (psql) Adrian Klaver <adrian.klaver@aklaver.com>
  0 siblings, 1 reply; 4+ messages in thread

From: stan @ 2019-11-20 15:01 UTC (permalink / raw)
  To: Brian Dunavant <dunavant@gmail.com>; +Cc: pgsql-general@lists.postgresql.org

On Wed, Nov 20, 2019 at 09:22:02AM -0500, Brian Dunavant wrote:
> On Wed, Nov 20, 2019 at 9:16 AM stan <stanb@panix.com> wrote:
> 
> >
> > How can i make these "invisible" characters visible?
> >
> >
> >
> In psql, by default it displays nulls as nothing.  You can specify what
> they should display as with:
> 
> \pset null '<something>'
> 
> Chances are those are all nulls, and will now display as whatever you set
> them to.  If they aren't, let us know.
That worked, and yes they are NULLs, guess I expected to get 0 rows, as the
only column I requested contained ONLY NULL's.

basic misunderstanding on my part, i suppose.

Thank you for your help.

-- 
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
						-- Benjamin Franklin





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

* Re: Making "invisible" characters visible ? (psql)
  2019-11-20 14:16 Making "invisible" characters visible ? (psql) stan <stanb@panix.com>
  2019-11-20 14:22 ` Re: Making "invisible" characters visible ? (psql) Brian Dunavant <dunavant@gmail.com>
  2019-11-20 15:01   ` Re: Making "invisible" characters visible ? (psql) stan <stanb@panix.com>
@ 2019-11-20 15:18     ` Adrian Klaver <adrian.klaver@aklaver.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Adrian Klaver @ 2019-11-20 15:18 UTC (permalink / raw)
  To: stan <stanb@panix.com>; Brian Dunavant <dunavant@gmail.com>; +Cc: pgsql-general@lists.postgresql.org

On 11/20/19 7:01 AM, stan wrote:
> On Wed, Nov 20, 2019 at 09:22:02AM -0500, Brian Dunavant wrote:
>> On Wed, Nov 20, 2019 at 9:16 AM stan <stanb@panix.com> wrote:
>>
>>>
>>> How can i make these "invisible" characters visible?
>>>
>>>
>>>
>> In psql, by default it displays nulls as nothing.  You can specify what
>> they should display as with:
>>
>> \pset null '<something>'
>>
>> Chances are those are all nulls, and will now display as whatever you set
>> them to.  If they aren't, let us know.
> That worked, and yes they are NULLs, guess I expected to get 0 rows, as the
> only column I requested contained ONLY NULL's.
> 
> basic misunderstanding on my part, i suppose.

NULL is a value so it should 'show' up.

> 
> Thank you for your help.
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





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


end of thread, other threads:[~2019-11-20 15:18 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-11-20 14:16 Making "invisible" characters visible ? (psql) stan <stanb@panix.com>
2019-11-20 14:22 ` Brian Dunavant <dunavant@gmail.com>
2019-11-20 15:01   ` stan <stanb@panix.com>
2019-11-20 15:18     ` Adrian Klaver <adrian.klaver@aklaver.com>

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