From: | David Fetter <david(at)fetter(dot)org> |
---|---|
To: | Itagaki Takahiro <itagaki(dot)takahiro(at)gmail(dot)com> |
Cc: | Josh Kupershmidt <schmiddy(at)gmail(dot)com>, PG Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Tab completion for view triggers in psql |
Date: | 2010-11-30 14:15:08 |
Message-ID: | 20101130141508.GF4549@fetter.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, Nov 30, 2010 at 08:13:37PM +0900, Itagaki Takahiro wrote:
> On Tue, Nov 30, 2010 at 18:18, David Fetter <david(at)fetter(dot)org> wrote:
> >> It expands all tables (and views) in tab-completion after INSERT,
> >> UPDATE, and DELETE FROM. Is it an intended change?
>
> I found it was a simple bug; we need ( ) around selcondition.
Oh. Heh. Thanks for tracking this down.
> In addition, I modified your patch a bit:
>
> * I added a separated CREATE TRIGGER INSTEAD OF if-branch
> because it doesn't accept tables actually; it only accepts
> views. OTOH, BEFORE or AFTER only accepts tables.
OK
> * I think "t.tgtype & (1 << N) <> 0" is more natural
> bit operation than "t.tgtype | (1 << N) = t.tgtype".
OK
> Patch attached. If you think my changes are ok,
> please change the patch status to "Ready for Committer".
Done :)
Cheers,
David.
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com
iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics
Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2010-11-30 14:19:26 | Re: DELETE with LIMIT (or my first hack) |
Previous Message | Josh Kupershmidt | 2010-11-30 14:07:31 | Re: [GENERAL] column-level update privs + lock table |