On Friday, November 26, 2021, SQL Padawan <
sql_padawan@protonmail.com> wrote:
ERROR: query has no destination for result data
HINT: If you want to discard the results of a SELECT, use PERFORM instead.
CONTEXT: PL/pgSQL function test_fn_6() line 6 at SQL statement
SQL statement "SELECT test_fn_6()"
PL/pgSQL function inline_code_block line 3 at PERFORM
Keep reading this error message until you get it. K is telling you exactly what, where, and how to fix your problem.
David J.