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 FUNCTION
quote_nullable_typed |
---|
'2020-01-01'::date |
SELECT 1
CREATE FUNCTION
f_sql_string_with_params |
---|
SELECT '1'::integer, '2020-01-01'::date, NULL::point, 'false $1', format('demo: %I', 'xX') |
SELECT 1
CREATE FUNCTION
fn |
---|
SELECT 1
CREATE FUNCTION
fn1 |
---|
Query string with $-parameters: SELECT $1, $2, $3, 'false $1', format('demo: %I', 'xX') |
Query string with typed values: SELECT '1'::integer, '2020-01-01'::date, NULL::date, 'false $1', format('demo: %I', 'xX') |
SELECT 2