Re: To Postgres Devs : Wouldn't changing the select limit

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Alexey Borzov <borz_off(at)rdw(dot)ru>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: To Postgres Devs : Wouldn't changing the select limit
Date: 2001-10-18 14:55:33
Message-ID: 200110181455.f9IEtX109998@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

> Greetings, Bruce!
>
> At 18.10.2001, 02:34, you wrote:
>
> >> Isn't it much worse to not follow PostgreSQL behavior than to not follow
> >> MySQL behavior?
>
> BM> Another idea: because our historical Limit #,# differs from MySQL, one
> BM> idea is to disable LIMIT #,# completely and instead print an error
> BM> stating they have to use LIMIT # OFFSET #. Although that would break
> BM> both MySQl and old PostgreSQL queries, it would not generate incorrect
> BM> results.
>
> It doesn't seem like a good idea. The best solution, IMHO, would
> be to introduce optional "MySQL-compatibility mode" for LIMIT in 7.2
> Later LIMIT #,# can be marked deprecated in favour of LIMIT #,
> OFFSET #
> But please, don't *break* things; while this change may make life
> easier for some people migrating from MySQL far more people would
> be pissed off...

OK, it seems enough people don't want this change that we have to do
something. What do people suggest? Can we throw an elog(NOTICE)
message in 7.2 stating that LIMIT #,# will disappear in the next release
and to start using LIMIT/OFFSET. That way, people can migrate their
code to LIMIT/OFFSET during 7.2 and it can disappear in 7.3?

I frankly think the LIMIT #,# is way too confusing anyway and would be
glad to have it removed.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Holt, Jack C. 2001-10-18 14:55:42 Accessing PostgreSQL through Apache and PHP4 on Linux
Previous Message Bruce Cota 2001-10-18 14:29:09 Re: Getting OID after Insert

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2001-10-18 14:59:29 Re: ecpg - GRANT bug
Previous Message Lee Kindness 2001-10-18 14:09:30 How do I get a list of DB's or Tables with a postgres SQL statement?