From: | Sehrope Sarkuni <sehrope(at)jackdb(dot)com> |
---|---|
To: | Álvaro Hernández Tortosa <aht(at)8kdata(dot)com> |
Cc: | Dave Cramer <pg(at)fastcrypt(dot)com>, Vladimir Sitnikov <sitnikov(dot)vladimir(at)gmail(dot)com>, Kevin Wooten <kdubb(at)me(dot)com>, List <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: Backend protocol wanted features |
Date: | 2016-01-06 02:29:52 |
Message-ID: | CAH7T-aqYH4fCcG81Gtsx+ppBOaSU6FGaKsR_BO8850WR_0A2Jg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
On Tue, Jan 5, 2016 at 7:45 PM, Álvaro Hernández Tortosa <aht(at)8kdata(dot)com>
wrote:
> There are other parts of the protocol that require a separate connection.
> Those I don't like either, but it's not unheard of. Maybe the solution is
> different: that LD may be consumed within the same connection (if that
> would be possible).
>
Why not use the existing LISTEN/NOTIFY infrastructure for this? If there
were a reserved namespace (ex: pg_% or pg_schema_%) then the existing
protocol could be used to listen for schema changes.
There would still need to be backend support for publishing those changes
but it'd be backwards compatible in both directions; it wouldn't break
existing clients and a modern client that issued a LISTEN for those changes
could work with an older backend that doesn't support it (it just won't
receive any notifications).
Full support for something like this would require well defined message
types to indicate what changed. For an initial version it might be easier
to just have a "something changed" message without the specifics of which
relations where impacted. A client could invalidate all prepared statements
associated with the connection.
Just my 2 cents...
Regards,
-- Sehrope Sarkuni
Founder & CEO | JackDB, Inc. | https://www.jackdb.com/
From | Date | Subject | |
---|---|---|---|
Next Message | Pavel Raiskup | 2016-01-07 15:13:53 | Re: [pgjdbc] Implement JDBC specs via pre-processor step (#435) |
Previous Message | Álvaro Hernández Tortosa | 2016-01-06 00:51:24 | Re: |