From: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
---|---|
To: | "Peter J(dot) Holzer" <hjp-pgsql(at)hjp(dot)at> |
Cc: | "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org> |
Subject: | Re: bigint out of range |
Date: | 2019-05-18 17:49:53 |
Message-ID: | CAKFQuwb5r0oWP2NFBRmhKJAW3xzK2f6z9_UxxTCnRiRxjMt1uQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Saturday, May 18, 2019, Peter J. Holzer <hjp-pgsql(at)hjp(dot)at> wrote:
> On 2019-05-16 08:48:51 -0700, David G. Johnston wrote:
> > On Thu, May 16, 2019 at 8:31 AM Daulat Ram <Daulat(dot)Ram(at)exponential(dot)com>
> wrote:
> >
> >
> > url_hash | bigint | | not null |
> >
> >
> > Change the type of url_hash; make it text instead of bigint.
>
> Or numeric(38, 0). I think it isn't coincidence that he tries to store
> a 38-digit number in it.
>
You don’t perform math on a hash thus its not a number no matter that it
may contain only digits.
David J.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2019-05-18 18:02:35 | Re: Loading table with indexed jsonb field is stalling |
Previous Message | Adrian Klaver | 2019-05-18 13:55:35 | Re: Loading table with indexed jsonb field is stalling |