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.


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo