Re: psql tab completion for updatable foreign tables - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: psql tab completion for updatable foreign tables
Date
Msg-id 1381976959.19926.15.camel@vanquo.pezone.net
Whole thread Raw
In response to Re: psql tab completion for updatable foreign tables  (Dean Rasheed <dean.a.rasheed@gmail.com>)
Responses Re: psql tab completion for updatable foreign tables  (Dean Rasheed <dean.a.rasheed@gmail.com>)
List pgsql-hackers
On Mon, 2013-07-08 at 16:04 +0000, Dean Rasheed wrote:
> There was concern that pg_relation_is_updatable() would end up opening
> every relation in the database, hammering performance. I now realise
> that these tab-complete queries have a limit (1000 by default) so I
> don't think this is such an issue. I tested it by creating 10,000
> randomly named auto-updatable views on top of a table, and didn't see
> any performance problems.

Even if performance isn't a problem, do we really want tab completion
interfering with table locking?  That might be a step too far.

Personally, I think this is too fancy anyway.  I'd just complete all
views and foreign tables and be done with it.  We don't inspect
permissions either, for example.  This might be too confusing for users.





pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: FDW API / flow charts for the docs?
Next
From: James Sewell
Date:
Subject: Re: [PATCH] Add an ldapoption to disable chasing LDAP referrals