pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thorsten Schöning <tschoening@am-soft.de>
To: PostgreSQL General <pgsql-general@lists.postgresql.org>
Subject: Re: Declarative partitioning and automatically generated row-IDs using BIGSERIAL
Date: Thu, 31 Dec 2020 19:17:56 +0100
Message-ID: <1441151409.20201231191756@am-soft.de> (raw)
In-Reply-To: <CAHOFxGoa36BxGuSx1eC8nUYRrgWW7Mp+UkEwbiyQPzK8DA8Ntw@mail.gmail.com>
References: <1176572765.20201231173856@am-soft.de>
	<CAHOFxGoa36BxGuSx1eC8nUYRrgWW7Mp+UkEwbiyQPzK8DA8Ntw@mail.gmail.com>

Guten Tag Michael Lewis,
am Donnerstag, 31. Dezember 2020 um 18:20 schrieben Sie:

> Why is your fillfactor so low?[...]

I've just copied what my GUI-tool pgModeler generated as SQL right
now, that fill factor might have never been applied at all.

> Perhaps a silly question, but do you have an index on captured_on?

Yes and that changed a lot some years ago, but doesn't seem to be
sufficient anymore.

> You included the full DDL for the table it seems so I wanted to ask.

No, only the relevant part necessary for my question. How SEQUENCES,
PKs etc. are handled is the most important thing right now.

> Can you
> provide some example queries that you want to speed up? What are you
> configuration settings (select * from pg_settings;)?

No thanks, I don't want to discuss such things in this thread. I'll
asked lot's of other questions regarding my concrete bottlenecks,
schema, app logic etc. already and simply want to test with partitions
now. That has been suggested in the other questions as well and is
what I focus on now.

> [...]That is, you could not have a primary key on ID and
> partition on captured_on for instance.

That's what I understood as well and is the reason why I asked: That
means IDs could be duplicated manually within individual partition
tables, while I need them to be unique across all of those.
Additionally I wonder when IDs are generated by which SEQUENCE etc.

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning
AM-SoFT IT-Service - Bitstore Hameln GmbH

E-Mail:  Thorsten.Schoening@AM-SoFT.de
Web:     http://www.AM-SoFT.de/

Telefon: 05151-  9468-55
Fax:     05151-  9468-88
Mobil:    0178-8 9468-04

Firmensitz: Bitstore IT-Consulting, Frankfurter Allee 285, 10317 Berlin
Steuernummer 037/230/30566, HR 27198, Amtsgericht Potsdam Geschäftsführer Janine Galonska






view thread (7+ messages)  latest in thread

Message-ID: <1441151409.20201231191756@am-soft.de>
Permalink:  ../1441151409.20201231191756@am-soft.de/
Also on:    postgresql.org/message-id/1441151409.20201231191756@am-soft.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tschoening@am-soft.de
  Subject: Re: Declarative partitioning and automatically generated row-IDs using BIGSERIAL
  In-Reply-To: <1441151409.20201231191756@am-soft.de>
  References: <1176572765.20201231173856@am-soft.de> <CAHOFxGoa36BxGuSx1eC8nUYRrgWW7Mp+UkEwbiyQPzK8DA8Ntw@mail.gmail.com> <1441151409.20201231191756@am-soft.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox