Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iCn3L-0008WE-Ei for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Sep 2019 15:48:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iCn3K-0008Es-1l for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Sep 2019 15:48:34 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iCn3J-0008DT-NA for pgsql-hackers@lists.postgresql.org; Tue, 24 Sep 2019 15:48:33 +0000 Received: from mail-qt1-x844.google.com ([2607:f8b0:4864:20::844]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iCn3H-0007Iy-0Y for pgsql-hackers@postgresql.org; Tue, 24 Sep 2019 15:48:32 +0000 Received: by mail-qt1-x844.google.com with SMTP id c21so2686132qtj.12 for ; Tue, 24 Sep 2019 08:48:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=ocs2/mVrg1zuHQb8Xhi6/QLTUKYIm2/sfdQSw1p5igw=; b=MNoCz5Izw3xBJnfnWUNl2DPMp86Edg6sHQ6r/+dc+DezICxOMpA28bBmCEc5PPUdaN nFVSTQYnjLtRd/K897lRutEyD7zL9iFSQefDVRa+LPWgL/W50QSyeOKEBI3wNqS6/t1p /9v7pDV/kLeKAc6QWNSoS9h4fpiqP8nn7UCQQnJl3xeG9J54jzTL+JaBKdTGlyb0FCmI GnoiyFJxAf+r6+OtiORZ1TckZUsaqc0cv1v/gYr2zqxP3WdLrDrKGwnB75bAZu8UkhV4 V4GTopuJSRubwq5TSbHp8EE5aiOUHpzA+a7MRzRlAJuO9h+iq0/VWN5Zh1nOYvTrAj+A 7seQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=ocs2/mVrg1zuHQb8Xhi6/QLTUKYIm2/sfdQSw1p5igw=; b=CVk0RO9DLXChou47UYRW47WvZwx+3Hl/J3iA9oHwYhb+3rOH9OJ/B5zC7yYzaol/Z5 KAQJjjldSCl8LxzoSpW8gwI+WrtGWQ+jy9hriych+xp2VDX12cEdizfEHEAK34OEFdnl LgVp4AYqiXQOgvCnWxEosac1CZ+iMf4K4k7GyV5UVOMwVnhq5eVejgHT1kU1ZiIGiIM9 JDjJ9z93mtcc8dvD9qrxMhngpx8LeBSKiJpsk7CxCLDCuRdD56uaImKwoqs6RRiTP3jK ptFRrZlrbmd+en9lWt+M7sSSG9nnUIJmej0hvD9S8EO4EMsLMvcPtI3OirDNL5ycAErW QBvA== X-Gm-Message-State: APjAAAWzzF06dUawe/ctzxjSzdnn4uz8lV9rxUVogfL5ZabrsV+bkGtq 9+NYdEKIP9V70J9Q1p+k4A+dCw== X-Google-Smtp-Source: APXvYqyBcAR2x8feKCIkd0RrEOkv403eRbZXJMrrDtYdyamhD6GtBZQwRKIW1yIxq91mthHQhEIznA== X-Received: by 2002:ac8:490a:: with SMTP id e10mr3573068qtq.70.1569340110298; Tue, 24 Sep 2019 08:48:30 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([179.56.30.174]) by smtp.gmail.com with ESMTPSA id 33sm1632600qtr.62.2019.09.24.08.48.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Sep 2019 08:48:29 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id AB33112097C; Tue, 24 Sep 2019 12:48:27 -0300 (-03) Date: Tue, 24 Sep 2019 12:48:27 -0300 From: Alvaro Herrera To: Surafel Temesgen Cc: Erik Rijkers , Thomas Munro , Tomas Vondra , David Steele , Michael Paquier , Robert Haas , Andrew Gierth , PostgreSQL Hackers Subject: Re: FETCH FIRST clause WITH TIES option Message-ID: <20190924154827.GA26751@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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