PL/pgSQL is the default procedural language for PostgreSQL.
Here is what I ideally want. Imagine that I have a table with the row A. I want to do: …
postgresql stored-procedures plpgsql sql-functionI've been looking at the documentation of postgresql triggers, but it seems to only show examples for row-level triggers, but …
postgresql plpgsql triggersI have a sql function that does a simple sql select statement: CREATE OR REPLACE FUNCTION getStuff(param character varying) …
sql database postgresql dynamic-sql plpgsqlHow to? For easy example. I have a simple function: DO LANGUAGE plpgsql $$ DECLARE BEGIN EXECUTE 'SELECT NOW()'; END $$; …
postgresql anonymous-function plpgsqlThis instruction works: SELECT INTO unsolvedNodes array_agg(DISTINCT idDestination) FROM road WHERE idOrigin = ANY(solvedNodes) AND NOT (idDestination = ANY(…
sql postgresql variable-assignment plpgsqlWith SQL Server, I can execute code ad hoc T-SQL code with full procedural logic through SQL Server Management Studio, …
postgresql plpgsqlI need to create a function that checks on a given table if the infowindow field exists. If it exists …
postgresql polymorphism plpgsql dynamic-sql return-typeI would like to delete all tables sharing the same prefix ('supenh_agk') from the same database, using one sql …
sql postgresql plpgsql dynamic-sqlI have a function in pgsql CREATE OR REPLACE FUNCTION core.date_bs_from_ad(date_in_ad date) RETURNS …
postgresql plpgsql pgadminI am receiving the error: set-valued function called in context that cannot accept a set when executing this function at …
postgresql plpgsql set-returning-functions