psql tab-completion for COMMIT/ROLLBACK PREPARED

From: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, pgsql-patches(at)postgresql(dot)org
Cc: Oliver Jowett <oliver(at)opencloud(dot)com>, Kenneth Marshall <ktm(at)is(dot)rice(dot)edu>
Subject: psql tab-completion for COMMIT/ROLLBACK PREPARED
Date: 2005-07-01 18:42:39
Message-ID: Pine.OSF.4.61.0507012139060.419432@kosh.hut.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

On Fri, 1 Jul 2005, Bruce Momjian wrote:

> Heikki Linnakangas wrote:
>> On Fri, 1 Jul 2005, Oliver Jowett wrote:
>>
>>> PS: noticed in passing: psql's help doesn't seem to know about the 2PC
>>> command syntax yet.
>>
>> True.
>>
>> Should we add support for it? 2PC is not something you normally do
>> interactively...
>
> Yes, we should add psql support for it.

Ok, here's a patch.

There's no tab-completion for "PREPARE TRANSACTION 'xxx'" since that would
be ambigous with "PREPARE xxx AS xx".

- Heikki

Attachment Content-Type Size
twophase-tab-completion.patch text/plain 2.1 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2005-07-01 19:27:29 Re: Autotools update
Previous Message Peter Eisentraut 2005-07-01 18:17:19 Autotools update

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2005-07-01 19:29:25 Re: 2PC transaction id
Previous Message Kenneth Marshall 2005-07-01 18:14:32 Re: 2PC transaction id