| From: | "Marko Kreen" <markokr(at)gmail(dot)com> |
|---|---|
| To: | "Nicolai Petri" <lists(at)petri(dot)cc> |
| Cc: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: Getting current transaction id |
| Date: | 2006-07-25 20:05:55 |
| Message-ID: | e51f66da0607251305h3817c646rccfecd87627a9cf6@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On 7/24/06, Nicolai Petri <lists(at)petri(dot)cc> wrote:
> I'm in the need for my custom written replication engine to obtain the current
> transaction id from a trigger function. As far as I'm told it's not possible
> today. Would people object much if this functionality was added for 8.2 ?
> It's the last piece of postgresql C code I have left in my application and I
> think it would be a nice information in general to have available for users.
> If not for anything else then for simple statistics.
>
> I attached the function I use with great success today.
Using XID directly has some drawbacks, I need similary finctionality,
and decided to extend XID to 8-bytes and use that externally:
http://archives.postgresql.org/pgsql-patches/2006-07/msg00157.php
Would that work for you?
--
marko
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2006-07-25 20:13:56 | Re: Better name/syntax for "online" index creation |
| Previous Message | Marko Kreen | 2006-07-25 19:49:22 | Re: Better name/syntax for "online" index creation |