postgresql get current query
postgresql logging in custom functions.
if you develop postgres plpgsql function sometimes you need to log something. you can add to log info from this select to determine what first query in transaction was perfotmed.
select current_query();
Apr 12 ยท 6 months ago ยท ๐ lufte
Response: 20 (Success), text/gemini
| Original URL | gemini://bbs.geminispace.org/u/asriyanarthur/16100 |
|---|---|
| Status Code | 20 (Success) |
| Content-Type | text/gemini; charset=utf-8 |