Closed jpollard-cs closed 2 years ago
I'm curious why the comments on the transaction_id field indicates that it
I'd agree - this seems to be a thinko.
Also would it be worth adding a helpful note to users that they may want to modify / remove the use of clock_timestamp if they don't need it as it could add significant performance overhead to bulk inserts?
Here I don't see why the use of clock_timestamp
may be a significant performance overhead in particular. At least I don't read that from the linked blog post. The example given there is the inability to use an index when filtering on clock_timestamp
due to the volatile nature of the function.
Oh right I see what you're saying - I misread that one π
Happy to put in a PR to update if we have a high degree of confidence here that this is a thinko
Hello π π
I'm curious why the comments on the
transaction_id
field indicates that itThe PostgreSQL docs (going back even to 9.1) say of
txid_current
(and related functions):Also would it be worth adding a helpful note to users that they may want to modify / remove the use of
clock_timestamp
if they don't need it as it could add significant performance overhead to bulk inserts? Curious what the primary use case is here? I could see this perhaps being useful if reading uncommitted data?Thanks!