postgresql - How to exit PSQL CREATE FUNCTION screens -
i'm new writing functions in postgres..
i don't want exit psql entirely, (i know ctrl+d that,) seem stuck in create function screen.
mattswheels=# create or replace function 99_cents(money) mattswheels-# returns money mattswheels-# language plpgsql mattswheels-# leakproof mattswheels-# $function$ mattswheels$# declare mattswheels$# new_price money; mattswheels$# size int; mattswheels$# begin mattswheels$# size := char_length(money); mattswheels$# return size; mattswheels$# end; mattswheels$# mattswheels$# \q mattswheels$# halp mattswheels$# ; mattswheels$# ; mattswheels$# ; mattswheels$# ; mattswheels$# mattswheels$# ; mattswheels$# \?
try ctrl+c. discards last query not terminated quotes.