Check that numeric is zero

From: Gabriel Furstenheim Milerud <furstenheim(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Check that numeric is zero
Date: 2023-05-06 18:46:19
Message-ID: CAJN3DWquY5P6X_mZEr4xCx7exJceJv6JxLCCgTX__imnxafuWg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,
I'm writing a Postgres native extension and I would like to check that a
numeric is zero.

My problem is that all exported methods like numeric_eq or numeric_sign
require me to have a numeric to start with, and const_zero is not exported
in numeric.c.

Any idea how to check it?

Thanks
Gabriel Fürstenheim

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2023-05-06 19:46:27 Re: Death postgres
Previous Message Marc Millas 2023-05-06 17:13:44 Re: Death postgres