pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dian Fay <dian.m.fay@gmail.com>
Cc: pgsql-hackers@lists.postgresql.org, Vik Fearing <vikreykja@gmail.com>
Subject: Re: TRIM_ARRAY
Date: Mon, 01 Mar 2021 18:53:41 -0500
Message-ID: <865850.1614642821@sss.pgh.pa.us> (raw)
In-Reply-To: <161464047991.29967.8270411748023500393.pgcf@coridan.postgresql.org>
References: <fc92ce17-9655-8ff1-c62a-4dc4c8ccd815@postgresfriends.org>
	<931d94fa-9238-47ba-6f17-01600a845417@postgresfriends.org>
	<161464047991.29967.8270411748023500393.pgcf@coridan.postgresql.org>

Dian Fay <dian.m.fay@gmail.com> writes:
> This basically does what it says, and the code looks good. The
> documentation is out of alphabetical order (trim_array should appear
> under cardinality rather than over)) but good otherwise. I was able to
> "break" the function with an untyped null in psql:

> select trim_array(null, 2);
> ERROR:  could not determine polymorphic type because input has type unknown

That's a generic parser behavior for polymorphic functions, not something
this particular function could or should dodge.

			regards, tom lane





view thread (12+ messages)  latest in thread

Message-ID: <865850.1614642821@sss.pgh.pa.us>
Permalink:  ../865850.1614642821@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/865850.1614642821@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, dian.m.fay@gmail.com, vikreykja@gmail.com
  Subject: Re: TRIM_ARRAY
  In-Reply-To: <865850.1614642821@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox