diff --git a/demo/kitchen-sink/docs/pgsql.pgsql b/demo/kitchen-sink/docs/pgsql.pgsql index 67be9882..ef265cdc 100644 --- a/demo/kitchen-sink/docs/pgsql.pgsql +++ b/demo/kitchen-sink/docs/pgsql.pgsql @@ -41,8 +41,8 @@ SELECT city, temp_lo, temp_hi, prcp, "date", location /** * Dollar quotes starting at the end of the line are colored as SQL unless -* a special language tag is used. Pearl and Python are currently implemented -* but lots of others are possible. +* a special language tag is used. Dollar quote syntax coloring is implemented +* for Perl, Python, JavaScript, and Json. */ create or replace function blob_content_chunked( in p_data bytea, @@ -82,6 +82,24 @@ CREATE FUNCTION usesavedplan() RETURNS trigger AS $python$ SD["plan"] = plan $python$ LANGUAGE plpythonu; +-- pl/v8 (javascript) +CREATE FUNCTION plv8_test(keys text[], vals text[]) RETURNS text AS $javascript$ +var o = {}; +for(var i=0; i