psql client 7.4RC1 completion bug

Started by Oliver Siegmarover 22 years ago2 messagesbugs
Jump to latest
#1Oliver Siegmar
oliver.siegmar@xams.org

============================================================================
POSTGRESQL BUG REPORT TEMPLATE
============================================================================

Your name : Oliver Siegmar
Your email address : oliver.siegmar@xams.org

Please enter a FULL description of your problem:
------------------------------------------------

psql -U username template1
template1=# alter database databasename <TAB><TAB>
RESET SET
template1=# \h alter database
Command: ALTER DATABASE
Description: change a database
Syntax:
ALTER DATABASE name SET parameter { TO | = } { value | DEFAULT }
ALTER DATABASE name RESET parameter

ALTER DATABASE name RENAME TO newname

...the psql Tab completion doesn't show the rename command.

#2Bruce Momjian
bruce@momjian.us
In reply to: Oliver Siegmar (#1)
Re: psql client 7.4RC1 completion bug

Oliver Siegmar wrote:

============================================================================
POSTGRESQL BUG REPORT TEMPLATE
============================================================================

Your name : Oliver Siegmar
Your email address : oliver.siegmar@xams.org

Please enter a FULL description of your problem:
------------------------------------------------

psql -U username template1
template1=# alter database databasename <TAB><TAB>
RESET SET
template1=# \h alter database
Command: ALTER DATABASE
Description: change a database
Syntax:
ALTER DATABASE name SET parameter { TO | = } { value | DEFAULT }
ALTER DATABASE name RESET parameter

ALTER DATABASE name RENAME TO newname

...the psql Tab completion doesn't show the rename command.

OK, found the bug. With the attached patch, it now show:

test=> ALTER DATABASE test
RENAME TO RESET SET

This will appear in 7.4 final.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

Attachments:

/bjm/difftext/plainDownload+2-2