pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Ken Tanzer <ken.tanzer@gmail.com>
Cc: PG-General Mailing List <pgsql-general@postgresql.org>
Subject: Re: psql UPDATE field [tab] expands to DEFAULT?
Date: Mon, 17 Jun 2019 17:22:53 -0700
Message-ID: <ee3b2dfa-5f37-b134-90f2-a2455a6f4b08@aklaver.com> (raw)
In-Reply-To: <CAD3a31Vh2DDAthHCOZ0H_-PpXYqtjUtLuHOzRnKYULONDn-eew@mail.gmail.com>
References: <CAD3a31XpXzrZA9TT3BqLSHghdTK+=cXjNCE+oL2Zn4+oWoc=qA@mail.gmail.com>
	<b70db19f-d582-0d1a-5b4d-15ea385781a4@aklaver.com>
	<CAD3a31Vh2DDAthHCOZ0H_-PpXYqtjUtLuHOzRnKYULONDn-eew@mail.gmail.com>

On 6/17/19 4:33 PM, Ken Tanzer wrote:
> On Mon, Jun 17, 2019 at 4:24 PM Adrian Klaver <adrian.klaver@aklaver.com 
> <mailto:adrian.klaver@aklaver.com>> wrote:
> 
>     On 6/17/19 3:03 PM, Ken Tanzer wrote:
>      >
>      > So I'm curious if this is intended behavior, if it's considered
>     useful,
>      > and/or if it's a placeholder for something in the future that
>     will be
>      > useful.  Also, is this new, as I've never noticed it before?
> 
>     Not sure how long that has been around.
> 
>     My cheat for dealing with many/long column names is:
> 
> 
> Thanks Adrian, though I wasn't really seeking tips for column names.  I 
> was instead trying to understand whether this particular tab expansion 
> was intentional and considered useful, and if so what that usefulness 

If I am following the below correctly it is intentional:

https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/bin/psql/tab-complete.c;h=68a2ba27a...

Line 2888

Useful, that is in the eye of the beholder:)

> was, because it's rather escaping me!
> 
> Cheers,
> Ken
> 
> 



-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (14+ messages)  latest in thread

Message-ID: <ee3b2dfa-5f37-b134-90f2-a2455a6f4b08@aklaver.com>
Permalink:  ../ee3b2dfa-5f37-b134-90f2-a2455a6f4b08@aklaver.com/
Also on:    postgresql.org/message-id/ee3b2dfa-5f37-b134-90f2-a2455a6f4b08@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, ken.tanzer@gmail.com
  Subject: Re: psql UPDATE field [tab] expands to DEFAULT?
  In-Reply-To: <ee3b2dfa-5f37-b134-90f2-a2455a6f4b08@aklaver.com>
  References: <CAD3a31XpXzrZA9TT3BqLSHghdTK+=cXjNCE+oL2Zn4+oWoc=qA@mail.gmail.com> <b70db19f-d582-0d1a-5b4d-15ea385781a4@aklaver.com> <CAD3a31Vh2DDAthHCOZ0H_-PpXYqtjUtLuHOzRnKYULONDn-eew@mail.gmail.com> <ee3b2dfa-5f37-b134-90f2-a2455a6f4b08@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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