Re: Why LIMIT and OFFSET are commutative

From: "Andrus" <kobruleht2(at)hot(dot)ee>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Why LIMIT and OFFSET are commutative
Date: 2007-11-26 17:37:24
Message-ID: fif08n$mn0$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


> That's SQL, my friend. OFFSET first, then LIMIT. Irrespective of the
> order
> in the query statement. It is what it is. SQL doesn't depend on LINQ for
> its semantics.

SQL requires strong order of all cases. Postgres syntax help about OFFSET /
LIMIT also
describes only single order.

Actually Postgres allows order of OFFSET / LIMIT clauses swapped without any
error.

Why Postgres does not throw error when SELECT ... LIMIT ... OFFSET is used ?
That's not sql and should cause error.

Andrus.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Chris Browne 2007-11-26 17:39:42 Re: replication in Postgres
Previous Message Vivek Khera 2007-11-26 16:56:53 Re: replication in Postgres