Skip to content

Instantly share code, notes, and snippets.

@mdcallag
Created January 28, 2024 18:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mdcallag/bb2b01d4c52a7a25929125f48aa22644 to your computer and use it in GitHub Desktop.
Save mdcallag/bb2b01d4c52a7a25929125f48aa22644 to your computer and use it in GitHub Desktop.
ib=# \d+ pi1
Table "public.pi1"
Column | Type | Collation | Nullable | Default | Storage | Compression | Stats target | Description
----------------+-----------------------------+-----------+----------+--------------------------------------------+----------+-------------+--------------+-------------
transactionid | bigint | | not null | nextval('pi1_transactionid_seq'::regclass) | plain | | |
dateandtime | timestamp without time zone | | | | plain | | |
cashregisterid | integer | | not null | | plain | | |
customerid | integer | | not null | | plain | | |
productid | integer | | not null | | plain | | |
price | integer | | not null | | plain | | |
data | character varying(4000) | | | | extended | | |
Indexes:
"pi1_pkey" PRIMARY KEY, btree (transactionid)
"pi1_marketsegment" btree (productid, customerid, price)
"pi1_pdc" btree (price, dateandtime, customerid)
"pi1_registersegment" btree (cashregisterid, customerid, price)
Access method: heap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment