Re: psql wishlist: value completion - Mailing list pgsql-general

From David Garamond
Subject Re: psql wishlist: value completion
Date
Msg-id 411DD4F3.1010203@zara.6.isreserved.com
Whole thread Raw
In response to psql wishlist: value completion  (David Garamond <lists@zara.6.isreserved.com>)
List pgsql-general
Steve Crawford wrote:
>>  # delete from person where firstname = 'D<tab><tab>
>>  Display all 215 possibilities? (y or n)
>
> Sure it would be cool - but as far as I can tell totally impractical.
>
> Determining all the possible expandable values for a particular column
> could very well require a full-table-scan of a multi-million row
> table each time you try to tab-expand.

Well, psql could display "Warning: this would require a full-table-scan
of a multi-million row table..." or "Warning: there are more than 100
possibilities, continue?" if there are no indexes or the first SELECT
... LIMIT 101 returns 101 rows.

--
dave

pgsql-general by date:

Previous
From: "Antony Paul"
Date:
Subject: Password authentication
Next
From: Geoff Caplan
Date:
Subject: Re: Performance critical technical key