Re: Propose a new function - list_is_empty

From: Daniel Gustafsson <daniel(at)yesql(dot)se>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Peter Smith <smithpb2250(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Propose a new function - list_is_empty
Date: 2022-08-16 20:34:17
Message-ID: A6DAA967-E453-4DBF-A9A1-E4A9A9A5FBB1@yesql.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On 16 Aug 2022, at 16:03, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> I agree though that while simplifying list_length() calls, I'd lean to using
> explicit comparisons to NIL.

Agreed, I prefer that too.

--
Daniel Gustafsson https://vmware.com/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2022-08-16 20:46:59 Re: hash_xlog_split_allocate_page: failed to acquire cleanup lock
Previous Message Nathan Bossart 2022-08-16 20:32:33 Re: Avoid erroring out when unable to remove or parse logical rewrite files to save checkpoint work