Re: No primary key table

Поиск
Список
Период
Сортировка
От Ron
Тема Re: No primary key table
Дата
Msg-id 76c2bb56-e81b-9086-433a-8ee5a35d72f2@gmail.com
обсуждение исходный текст
Ответ на No primary key table  (Ertan Küçükoglu <ertan.kucukoglu@gmail.com>)
Список pgsql-general
On 9/13/19 10:34 AM, Ertan Küçükoglu wrote:
> 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
fromseveral 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
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
tablesotherwise.
 

Don't you need an index to "check for duplicate entries of a single record 
using an sql before each insert"?

-- 
Angular momentum makes the world go 'round.



В списке pgsql-general по дате отправления:

Предыдущее
От: Ertan Küçükoglu
Дата:
Сообщение: No primary key table
Следующее
От: Bernard Quatermass
Дата:
Сообщение: Suitable licence for schema components