Re: Getting rid of aggregate_dummy()

From: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Getting rid of aggregate_dummy()
Date: 2020-11-02 11:46:15
Message-ID: 7b258660-33ce-7689-e2a1-1deb37c060ad@iki.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 01/11/2020 22:47, Tom Lane wrote:
> With that, we don't actually need aggregate_dummy() to exist at
> all, because it's never referenced. Having "aggregate_dummy"
> as the prosrc value for an aggregate function is now just a
> random convention; any other string would do as well. (We could
> save a few bytes in pg_proc by choosing a shorter string, but
> probably it's better to stick to the existing convention.)

NULL would seem like the natural value for that.

- Heikki

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kyotaro Horiguchi 2020-11-02 11:50:30 Re: Dereference before NULL check (src/backend/storage/ipc/latch.c)
Previous Message Ranier Vilela 2020-11-02 11:31:57 Re: Dereference before NULL check (src/backend/storage/ipc/latch.c)