PL/pgSQL is the default procedural language for PostgreSQL.
Is it possible to return multiple result sets from a Postgres function, like in MSSQL: CREATE PROCEDURE test AS SELECT * …
postgresql plpgsqlI have a situation where I want to return the join between two views. and that's a lot of columns. …
postgresql plpgsql dynamic-sql postgresql-9.2I'm trying to test, within a stored procedure, whether a sequence already exists. IF EXISTS SEQUENCE seq_name RAISE EXCEPTION …
postgresql stored-procedures plpgsqlI am trying to write a PL/pgSQL function with optional arguments. It performs a query based on a filtered …
postgresql stored-procedures parameters parameter-passing plpgsqlI'm attempting to write an area of a function in PL/pgSQL that loops through an hstore and sets a …
postgresql record plpgsql dynamic-sql compositeI have a table: CREATE TABLE annotations ( gid serial NOT NULL, annotation character varying(250), the_geom geometry, "rotationAngle" character varying(3) …
sql postgresql plpgsql triggersI want to execute a dynamic SQL statement, with its returned value being the conditional for an IF statement: IF …
postgresql dynamic-sql plpgsqlI am trying to create crosstab queries in PostgreSQL such that it automatically generates the crosstab columns instead of hardcoding …
postgresql plpgsql dynamic-sql postgresql-9.1 crosstabIn PostgreSQL, I would like to create a safe-wrapping mechanism which returns empty result if an exception occurs. Consider the …
sql postgresql exception-handling plpgsql dynamic-sqlI'm trying to delete all data related to a user id from a game database. There is a table holding …
postgresql plpgsql select-into