Skip to content

Instantly share code, notes, and snippets.

@mkubala
Last active July 10, 2020 11:49
Show Gist options
  • Save mkubala/8a5ece3b2536dfe60083fc3400f6c6e2 to your computer and use it in GitHub Desktop.
Save mkubala/8a5ece3b2536dfe60083fc3400f6c6e2 to your computer and use it in GitHub Desktop.
psql> \d+ journal
Partitioned table "public.journal"
Column | Type | Collation | Nullable | Default | Storage | Stats target | Description
-----------------+-----------+-----------+----------+-----------------------------------------------+----------+--------------+-------------
ordering | bigint | | not null | nextval('journal_ordering_seq'::regclass) | plain | |
sequence_number | bigint | | not null | | plain | |
deleted | boolean | | not null | false | plain | |
persistence_id | text | | not null | | extended | |
message | bytea | | not null | | extended | |
tags | integer[] | | | | extended | |
Partition key: LIST (persistence_id)
Indexes:
"journal_pkey" PRIMARY KEY, btree (persistence_id, sequence_number)
"journal_ordering_idx" brin (ordering)
Partitions: journal_0 FOR VALUES IN ('p-0'), PARTITIONED,
journal_1 FOR VALUES IN ('p-1'), PARTITIONED,
Journal_9 FOR VALUES IN (‘p-9’), PARTITIONED
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment