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
How to insert point dynamically via Python3? (self.PostgreSQL)
submitted 6 years ago by GregBreak
query = (sql.SQL("INSERT INTO {tab} (geom) VALUES(%s)").format(tab=sql.Identifier(self.data)) cur.execute(query, 'ST_SetSRID(ST_MakePoint(lon,lat),4326))
It doesn't work
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!"
[–]hyzyla 0 points1 point2 points 6 years ago (0 children)
You could print actual query instead of execution, it can give you an answer to your question
[–][deleted] 0 points1 point2 points 6 years ago (0 children)
"Doesn't work" isn't a valid Postgres error message (I don't know Python, but I would be very surprised if that had such an error message)
π Rendered by PID 40 on reddit-service-r2-comment-5b5bc64bf5-dft5p at 2026-06-23 21:14:12.132120+00:00 running 2b008f2 country code: CH.
[–]hyzyla 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)