Re: Getting Error while using row_number()

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: Ashish Kaushal <ashish(dot)kaushal(at)getfareye(dot)com>, "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: Getting Error while using row_number()
Date: 2020-07-09 20:09:41
Message-ID: 1919491.1594325381@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"David G. Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> writes:
> On Thursday, July 9, 2020, Ashish Kaushal <ashish(dot)kaushal(at)getfareye(dot)com>
> wrote:
>> I have environment with PostgreSQL 8.0.2

> PostgreSQL 8.0.2? Seriously?

If it actually is 8.0.x, or even 8.2.x, then it lacks window functions
anyway; those came in in 8.4. But there's a bigger problem:

>> You have an error in your SQL syntax; check the manual that corresponds to
>> your MySQL server version for the right syntax to use near '(partition by
>> `journey_id` ORDER BY `journey_id`) from `consents` limit 10' at line 6

That's not a Postgres error at all. The OP seems quite confused.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2020-07-09 20:29:11 Re: BUG #16512: Character considered as a number by regex but can not convert to numeric
Previous Message David G. Johnston 2020-07-09 19:54:21 Re: Getting Error while using row_number()