| From: | Flemming Frandsen <ff(at)partyticket(dot)net> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: LISTEN considered dangerous |
| Date: | 2006-08-04 09:32:38 |
| Message-ID: | Pine.LNX.4.44.0608041106410.18488-100000@partyticket.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Fri, 4 Aug 2006, Martijn van Oosterhout wrote:
> Really? Even pg_dump cares? Or your maintainence scripts
> (VACUUM/ANALYZE)?
Ok, those clients don't, but you rarely have many vacuum/pg_dump
processes going on at the same time, so storing the events for them and
throwing them away is not that big of a deal imho.
> I'd have to disagree though. In most of the systems I've worked with
> the database is in the center of the system. It'd be access by CGI
> scripts, cron job, batch jobs started by a person, load triggered by
> emails, etc. These may all use very different methods of accessing the
> database. Even if an application used LISTEN/NOTIFY, I can't imagine
> any bulk load/store being interested.
Hmm, maybe you are right:)
Maybe a new implementation should be able to do both.
That way you could set the timetravel option on the begin statement:
begin listen now
So transactions that like to get all events they listen for during the
transaction can and everybody else will get only events that happen after
they commit.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Nikolay Samokhvalov | 2006-08-04 09:50:42 | Fwd: Strange behaviour of RULE (selecting last inserted ID of 'sequenced' column) |
| Previous Message | Steven Wai-Keung Cheng | 2006-08-04 09:20:18 | PostgreSQL engagment |