Re: Improve list manipulation in several places

From: David Rowley <dgrowleyml(at)gmail(dot)com>
To: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
Cc: Richard Guo <guofenglinux(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Improve list manipulation in several places
Date: 2023-04-21 12:09:54
Message-ID: CAApHDvriWWAUQxfQQ3bEMjmXNJpsTMpr2m75LNBc_GFQ8vJrXw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, 21 Apr 2023 at 23:16, Ranier Vilela <ranier(dot)vf(at)gmail(dot)com> wrote:
> Perhaps list_delete_nth_cell needs to check NIL too?
> + if (list == NIL)
> + return NIL;

Which cell would you be deleting from an empty list?

David

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2023-04-21 12:18:51 Re: Non-superuser subscription owners
Previous Message Thom Brown 2023-04-21 11:53:14 Re: Remove references to pre-11 versions