From: | Ranier Vilela <ranier(dot)vf(at)gmail(dot)com> |
---|---|
To: | "Wilson, Maria Louise (LARC-E301)[RSES]" <m(dot)l(dot)wilson(at)nasa(dot)gov> |
Cc: | Matheus de Oliveira <matioli(dot)matheus(at)gmail(dot)com>, Frits Hoogland <frits(dot)hoogland(at)gmail(dot)com>, "pgsql-performance(at)lists(dot)postgresql(dot)org" <pgsql-performance(at)lists(dot)postgresql(dot)org> |
Subject: | Re: [EXTERNAL] Need help with performance tuning pg12 on linux |
Date: | 2023-12-27 17:23:33 |
Message-ID: | CAEudQAqf5sUumKEP0WmDPBHP8X1qnZEzmKum3z=-HaTg5z=7vg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
Em qua., 27 de dez. de 2023 às 14:11, Wilson, Maria Louise
(LARC-E301)[RSES] <m(dot)l(dot)wilson(at)nasa(dot)gov> escreveu:
> Thanks for the reply!! Having some issues due to nulls…. Any other
> thoughts?
>
>
>
> i=# ALTER TABLE granule_file ADD PRIMARY KEY (granule_uuid, file_id);
>
> ERROR: column "granule_uuid" contains null values
>
Well, uuid is a bad datatype for primary keys.
If possible in the long run, consider replacing them with bigint.
Can you try a index:
CREATE INDEX granule_file_file_id_key ON granule_file USING btree(file_id);
Although granule_file has an index as a foreign key, it seems to me that it
is not being considered.
My 2cents.
Best regards,
Ranier Vilela
From | Date | Subject | |
---|---|---|---|
Next Message | Wilson, Maria Louise (LARC-E301)[RSES] | 2023-12-27 17:52:25 | Re: [EXTERNAL] Need help with performance tuning pg12 on linux |
Previous Message | Wilson, Maria Louise (LARC-E301)[RSES] | 2023-12-27 17:10:59 | Re: [EXTERNAL] Need help with performance tuning pg12 on linux |