Re: FETCH FIRST clause WITH TIES option

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Surafel Temesgen <surafel3000(at)gmail(dot)com>
Cc: Erik Rijkers <er(at)xs4all(dot)nl>, Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com>, David Steele <david(at)pgmasters(dot)net>, Michael Paquier <michael(at)paquier(dot)xyz>, Robert Haas <robertmhaas(at)gmail(dot)com>, Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: FETCH FIRST clause WITH TIES option
Date: 2019-09-24 15:48:27
Message-ID: 20190924154827.GA26751@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hmm,

create table w (a point);

# select * from w order by a fetch first 2 rows with ties;
ERROR: could not identify an ordering operator for type point
LINE 1: select * from w order by a fetch first 2 rows with ties;
^
HINT: Use an explicit ordering operator or modify the query.

I'm not sure that the HINT is useful here.

--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message vignesh C 2019-09-24 15:51:20 Re: dropdb --force
Previous Message Alvaro Herrera 2019-09-24 15:38:30 Re: [PATCH] src/test/modules/dummy_index -- way to test reloptions from inside of access method