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?.
2 rows affected
9 rows affected
id | username | phone | |
---|---|---|---|
1 | Kirill | kirill@gmail.com | +79653248496 |
2 | Ivan | ivan@gmail.com | +79872753471 |
id | row | col | price | status | account_id |
---|---|---|---|---|---|
1 | 1 | 1 | 500 | Free | null |
2 | 1 | 2 | 550 | Free | null |
3 | 1 | 3 | 500 | Free | null |
4 | 2 | 1 | 600 | Free | null |
5 | 2 | 2 | 650 | Free | null |
6 | 2 | 3 | 600 | Free | null |
7 | 3 | 1 | 650 | Free | null |
8 | 3 | 2 | 700 | Free | null |
9 | 3 | 3 | 650 | Free | null |
1 rows affected
id | row | col | price | status | account_id |
---|---|---|---|---|---|
1 | 1 | 1 | 500 | Free | null |
2 | 1 | 2 | 550 | Free | null |
3 | 1 | 3 | 500 | Free | null |
4 | 2 | 1 | 600 | Free | null |
6 | 2 | 3 | 600 | Free | null |
7 | 3 | 1 | 650 | Free | null |
8 | 3 | 2 | 700 | Free | null |
9 | 3 | 3 | 650 | Free | null |
5 | 2 | 2 | 650 | Taken | 1 |