Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xjfgg-0000kS-Qb for pgsql-bugs@arkaria.postgresql.org; Thu, 30 Oct 2014 02:42:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Xjfgg-00070k-8G for pgsql-bugs@arkaria.postgresql.org; Thu, 30 Oct 2014 02:42:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Xjb4G-0000sb-Cn for pgsql-bugs@postgresql.org; Wed, 29 Oct 2014 21:46:12 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xjb47-0007aq-F6 for pgsql-bugs@postgresql.org; Wed, 29 Oct 2014 21:46:10 +0000 MIME-Version: 1.0 Subject: BUG #11825: "select lead('literal text') ..." -> could not determine polymorphic type To: pgsql-bugs@postgresql.org From: casey@cloudera.com Date: Wed, 29 Oct 2014 21:45:31 +0000 Message-ID: <20141029214531.6149.49378@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.2 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 11825 Logged by: casey Email address: casey@cloudera.com PostgreSQL version: 9.3.5 Operating system: ubuntu 14.04 Description: Some analytic functions such as LEAD/FIRST_VALUE don't accept char literals as input, an example is below. This came up randomly during some testing. I don't have a good use case for such a query and it's easy to workaround but it seems odd so I thought I'd report it. functional=# select version(); version ------------------------------------------------------------------------------------------------------ PostgreSQL 9.3.5 on x86_64-unknown-linux-gnu, compiled by gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2, 64-bit (1 row) functional=# create table empty (c int); CREATE TABLE functional=# SELECT LEAD('a') OVER () FROM empty; ERROR: could not determine polymorphic type because input has type "unknown" -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs