Re: jsonpath: Inconsistency of timestamp_tz() Output
David E. Wheeler <david@justatheory.com>
From: "David E. Wheeler" <david@justatheory.com>
To: Junwang Zhao <zhjwpku@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2024-07-10T14:35:17Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Fix comment in libpqrcv_check_conninfo().
- 629520be5f9d 18.0 cited
-
Remove useless extern keywords
- 3fb59e789dd9 18.0 cited
On Jul 10, 2024, at 10:33, David E. Wheeler <david@justatheory.com> wrote: > Yeah I don’t know either, but now at least it’s consistent. I’ve attached a patch to fix it. > > Ideally, I think, we wouldn’t convert the value and determine the offset twice, but teach date_timestamptz and timestamp_timestamptz (or date2timestamptz and timestamp2timestamptz?) how to return the offset, or create alternate functions that do so. Not sure what calling style should be adopted here, but this at least addresses the issue. Happy to resubmit something more efficient upon function design feedback. Here’s a September CommitFest item, though I think it should be fixed before the next beta. https://commitfest.postgresql.org/49/5119/ Best, David