Skip site navigation (1) Skip section navigation (2)

[PATCH] Improve autocompletion for SELECT statements

From: Wander Winkelhorst <w(dot)winkelhorst(at)gmail(dot)com>
To: pgadmin-hackers(at)postgresql(dot)org
Subject: [PATCH] Improve autocompletion for SELECT statements
Date: 2011-10-31 19:23:34
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgadmin-hackers

A big part of my job is creating simple select statements with a few joins
in them. Unfortunately, the existing autocomplete functionality of pgadmin
was a bit too limited for my use case. A relatively simple query like:
select * from person p join company c on p.company_id = where =
'John'  would be enough to completely throw the autocompletion off.

So I started working on a patch to improve the autocompletion a bit and the
result is attached. It doesn't have all the features I would like it to
have (no support for table aliases, for example) but it is already a big
improvement for my use case.

Please comment if I need to change anything to get this patch into pgadmin.

This patch is against pgadmin3-1.14.0.tar.gz

Wander Winkelhorst.

Attachment: autocomplete.patch
Description: text/x-patch (4.2 KB)


pgadmin-hackers by date

Next:From: Vinicius SantosDate: 2011-11-01 10:41:43
Subject: Re: Keywords in Uppercase
Previous:From: Guillaume LelargeDate: 2011-10-28 20:11:56
Subject: Re: Bug: Constraint trigger editing

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group