Re: Drop in insert performance after 20ish seconds - Mailing list pgsql-novice

From legrand legrand
Subject Re: Drop in insert performance after 20ish seconds
Date
Msg-id 1582665262552-0.post@n3.nabble.com
Whole thread Raw
In response to Drop in insert performance after 20ish seconds  (Toni Alfirević <toni.alfirevic@gmail.com>)
List pgsql-novice
Hello,

postgres=# \d pg_test_messages
                                        Table "public.pg_test_messages"
  Column   |            Type             | Collation | Nullable |                  
Default
-----------+-----------------------------+-----------+----------+----------------------------------------------
 Id        | bigint                      |           | not null |
nextval('pg_test_messages_id_seq'::regclass)
 Message   | text                        |           | not null |
 TimeStamp | timestamp without time zone |           |          |
Indexes:
    "PK_pg_test_messages" PRIMARY KEY, btree ("Id")
    "IX_pg_test_messages_Id" btree ("Id")

It seems you have 2 indexes on "Id" columns, as this column is not null and
also primary key,
"IX_pg_test_messages_Id" is not needed. I would drop it and test again.

Regards
PAscal



--
Sent from: https://www.postgresql-archive.org/PostgreSQL-novice-f2132464.html



pgsql-novice by date:

Previous
From: Stephen Froehlich
Date:
Subject: RE: Drop in insert performance after 20ish seconds
Next
From: "Michael J. Cosentino"
Date:
Subject: Re: Unable to Connect to Server Error Help