From what I understand, a stored procedure in pgSQL is actually a function
that returns rows? Am I correct?
Can somebody show me the syntax for a basic stored procedure that takes an
argument?
i.e I would like the query to be "select name, email from users where userid
= @userid"
Sorry for the easy question but I looked at the docs and just can't seem to
find what I'm looking for.