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?.
CREATE TABLE
CREATE TABLE
CREATE TABLE
CREATE TYPE
CREATE FUNCTION
fn_insert_symbol_record
null
SELECT 1
id name created_at
1 Binance 2023-08-28 16:49:11.36154+01
SELECT 1
id name precision commission_precision created_at
1 ETH null null 2023-08-28 16:49:11.36154+01
2 BTC null null 2023-08-28 16:49:11.36154+01
3 USDT null null 2023-08-28 16:49:11.36154+01
SELECT 3
id name exchange_id base_asset_id quote_asset_id created_at
1 ETHBTC 1 1 2 2023-08-28 16:49:11.36154+01
2 BTCUSDT 1 2 3 2023-08-28 16:49:11.36154+01
3 ETHUSDT 1 1 3 2023-08-28 16:49:11.36154+01
SELECT 3