Re: No primary key table

From: SERHAD ERDEM <serhade(at)hotmail(dot)com>
To: Ertan Küçükoglu <ertan(dot)kucukoglu(at)gmail(dot)com>, "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: No primary key table
Date: 2019-09-13 17:38:39
Message-ID: VI1PR06MB4207CA6CA2ECB0945238BFB8A3B30@VI1PR06MB4207.eurprd06.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,
if you have not seen any benefit , of course you can remove identity column from a DWH table , there is a sequence and a trigger for identity serial column.
ID columns are being generaly used for base tables which are under end-user operations.

________________________________
From: Ertan Küçükoglu <ertan(dot)kucukoglu(at)gmail(dot)com>
Sent: Friday, September 13, 2019 3:34 PM
To: pgsql-general(at)lists(dot)postgresql(dot)org <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: No primary key table

Hello,

We are using PostgreSQL 10.0 on a Windows VM.

There is one database in that server.
There are several tables that will be used for data warehouse purposes.

There are daily inserts and relatively heavy bulk (whole month data at once) reads at end of months. Reads will be from several hundred clients and will be over internet and no local network connection.

Daily data saving application check for duplicate entries of a single record using an sql before each insert. That is only select statement during in month days.

End of the month queries will be selecting bulk data from previous month records and will filter on GUID field and a varchar(25) field.

There is one primary key of a bigint identity column on each table. Primary key won't be used for any purpose for any queries.

We wonder if it maybe a suggested to remove primary key index and column. There is no unique key index on these tables otherwise.

Thanks & regards,
Ertan Küçükoğlu

Sent from my iPhone

In response to

Browse pgsql-general by date

  From Date Subject
Next Message stan 2019-09-13 18:22:15 problems importing from csv
Previous Message Bernard Quatermass 2019-09-13 16:43:38 Suitable licence for schema components