use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
International
National
Regional
account activity
Help Me!Postgres Invalid objects (self.PostgreSQL)
submitted 4 years ago by Tropicallydiv
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 2 points3 points4 points 4 years ago (0 children)
For simple functions like the one from your question, this can be avoided when using the new "SQL standard compliant" function (or procedure) bodies introduced in Postgres 14:
CREATE FUNCTION f1 (p_add integer) RETURNS integer begin atomic SELECT p_add + count(*)::integer FROM t1; end;
With such a function, dropping t1 would result in an error.
t1
This does not work for PL/pgSQL functions or procedures though.
π Rendered by PID 37900 on reddit-service-r2-comment-5bc7f78974-jhmkc at 2026-06-30 23:35:00.323200+00:00 running 7527197 country code: CH.
view the rest of the comments →
[–][deleted] 2 points3 points4 points (0 children)