No primary key table - Mailing list pgsql-general

From Ertan Küçükoglu
Subject No primary key table
Date
Msg-id 901B71E4-A06F-448B-A8B4-056558EBDAF5@gmail.com
Whole thread Raw
Responses Re: No primary key table
Re: No primary key table
List pgsql-general
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
severalhundred 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
onlyselect 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


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: PANIC: could not write to file "pg_wal/xlogtemp.11399": No space left on device
Next
From: Ron
Date:
Subject: Re: No primary key table