add batch remove batch split batch comment selection show hidden batches hide batch highlight batch
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Help with an interesting Postgres question: Why isn't an Index Only Scan used on a partition accessed via the parent table?.
version
PostgreSQL 13.13 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-20), 64-bit
SELECT 1
CREATE TABLE
CREATE FUNCTION
show_create_table
CREATE TABLE trade ( --
    id integer NOT NULL, --
    epoq integer NOT NULL, --
    prix numeric NOT NULL, --
    qte numeric NOT NULL, --
    t_mon integer NOT NULL, --
    t_yr integer NOT NULL, --
    sym_txt text NOT NULL, --
    ts timestamp with time zone NOT NULL, --
    sym_id smallint NOT NULL --
);
SELECT 1
CREATE TABLE
INSERT 0 4
id epoq prix qte t_mon t_yr sym_txt ts sym_id
1 1628609486 2.36400 29.18557000 8 2021 1INCHEUR 2021-08-10 15:31:26+01 214
2 1628609494 2.36400 12.50281000 8 2021 1INCHEUR 2021-08-10 15:31:34+01 214
3 1628609496 2.36300 416.76043000 8 2021 1INCHEUR 2021-08-10 15:31:36+01 214
4 1628609520 2.36500 38.94156000 8 2021 1INCHEUR 2021-08-10 15:32:00+01 214
SELECT 4