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?.
1 rows affected
id | artifact_id |
---|---|
1 | artifact_id_example_1 |
ERROR: operator does not exist: unknown + text
LINE 2: + quote_ident(target_table_input)
^
HINT: No operator matches the given name and argument types. You might need to add explicit type casts.
QUERY: 'SELECT id FROM '
+ quote_ident(target_table_input)
+ ' WHERE '
+ quote_ident(target_column_input) + ' = ' + quote_ident(target_value_input)
+ ' INTO ' pk_output
CONTEXT: PL/pgSQL function custom_upsert(text,text,text) line 4 at EXECUTE