Re: BUG #5218: Easy strategic feature requests

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Russell Wallace <russell(dot)wallace(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5218: Easy strategic feature requests
Date: 2009-11-30 15:23:15
Message-ID: 603c8f070911300723r2baa6a25n1555798a75e58a3c@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-general

On Sat, Nov 28, 2009 at 5:34 PM, Russell Wallace
<russell(dot)wallace(at)gmail(dot)com> wrote:
>
> The following bug has been logged online:
>
> Bug reference:      5218
> Logged by:          Russell Wallace
> Email address:      russell(dot)wallace(at)gmail(dot)com
> PostgreSQL version: 8.4.1
> Operating system:   Windows
> Description:        Easy strategic feature requests
> Details:
>
> (There wasn't a separate form for feature requests, so I'm assuming that
> like most projects, this one files them together with bugs, please let me
> know if that is not the case.)
>
> Can you make Show Databases, Show Tables and Describe (table) work the way
> they do in MySQL? This would make things easier for newbies and would also
> make it easier to port code from MySQL; they would only need to be syntax
> sugar for the corresponding information schema queries, so it would probably
> only take a few lines of code, and would improve PostgreSQL's competitive
> position versus MySQL out of all proportion to the apparent significance of
> these features.
>
> It would be nice if Use (database) could also be made to work, but I'm
> guessing this would not be just a few lines of code. What would be easy and
> still useful, however, would be if it could return a specific error message:
> "you can't do this in Postgres, you always need to supply a database name on
> connection"; again that would make life easier for newbies, and that matters
> a lot for competitive advantage.

Features requests are usually discussed on pgsql-hackers. I'm not
sure there will be much support for this proposal, although I it did
take me a while to figure out the PostgreSQL equivalents of those
commands when I made the switch. For interactive use, the psql
backslash-commands are fine, but for scripted access to the schema,
the MySQL way is definitely easier. One of the problems is that
"show" is already a PostgreSQL verb with an incompatible meaning.

Rather than trying to be compatible with MySQL directly, I think we
might be better off adding a chapter to our documentation explaining
to ex-MySQL users how to accomplish the same things in PostgreSQL. We
might even think about adding a contrib module with user-defined
functions like show_databases(), show_tables(), describe(text), so
that someone could do SELECT describe('foo'); and get a familiar sort
of output.

...Robert

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2009-11-30 15:36:25 Re: BUG #5220: regexp fails on punctuation characters
Previous Message jef peeraer 2009-11-30 14:36:29 BUG #5220: regexp fails on punctuation characters

Browse pgsql-general by date

  From Date Subject
Next Message Massa, Harald Armin 2009-11-30 15:24:40 what did happen to dblink_ora
Previous Message Adrian Klaver 2009-11-30 14:46:01 Re: Date with time zone