Re: [HACKERS] Pluggable storage
От
Amit Kapila
Тема
Re: [HACKERS] Pluggable storage
Дата
Msg-id
CAA4eK1+AXBM+AVMp6LZZPYAFMFw433rFC9_2htHM3OX9VaafRA@mail.gmail.com
Ответ на
Re: [HACKERS] Pluggable storage (Haribabu Kommi)
Список
Дерево обсуждения
Pluggable storage Alvaro Herrera <alvherre@2ndQuadrant.com>
Re: Pluggable storage Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Pluggable storage Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] Pluggable storage Haribabu Kommi <kommi.haribabu@gmail.com>
Re: [HACKERS] Pluggable storage Andres Freund <andres@anarazel.de>
Re: [HACKERS] Pluggable storage Haribabu Kommi <kommi.haribabu@gmail.com>
Re: [HACKERS] Pluggable storage Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Pluggable storage Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Pluggable storage Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Pluggable storage Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Pluggable storage Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Pluggable storage Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] Pluggable storage Teodor Sigaev <teodor@sigaev.ru>
Re: [HACKERS] Pluggable storage Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Pluggable storage Julien Rouhaud <julien.rouhaud@dalibo.com>
Re: [HACKERS] Pluggable storage Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Pluggable storage Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Pluggable storage Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Pluggable storage Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Pluggable storage Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Pluggable storage Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Pluggable storage Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] Pluggable storage Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Pluggable storage Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Pluggable storage Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [HACKERS] Pluggable storage Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] Pluggable storage Haribabu Kommi <kommi.haribabu@gmail.com>
Re: [HACKERS] Pluggable storage Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Pluggable storage Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Pluggable storage Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Pluggable storage Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Pluggable storage Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] Pluggable storage Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Pluggable storage Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] Pluggable storage Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Pluggable storage Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] Pluggable storage Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Pluggable storage Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] Pluggable storage Amit Kapila <amit.kapila16@gmail.com>
Re: [HACKERS] Pluggable storage Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Pluggable storage Amit Kapila <amit.kapila16@gmail.com>
Re: [HACKERS] Pluggable storage Haribabu Kommi <kommi.haribabu@gmail.com>
Re: [HACKERS] Pluggable storage Haribabu Kommi <kommi.haribabu@gmail.com>
Re: [HACKERS] Pluggable storage Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Pluggable storage Haribabu Kommi <kommi.haribabu@gmail.com>
Re: [HACKERS] Pluggable storage Amit Kapila <amit.kapila16@gmail.com>
Re: [HACKERS] Pluggable storage Haribabu Kommi <kommi.haribabu@gmail.com>
Re: [HACKERS] Pluggable storage Amit Kapila <amit.kapila16@gmail.com>
Re: [HACKERS] Pluggable storage Haribabu Kommi <kommi.haribabu@gmail.com>
Re: [HACKERS] Pluggable storage Amit Kapila <amit.kapila16@gmail.com>
Re: [HACKERS] Pluggable storage Haribabu Kommi <kommi.haribabu@gmail.com>
Re: [HACKERS] Pluggable storage Amit Kapila <amit.kapila16@gmail.com>
Re: [HACKERS] Pluggable storage Haribabu Kommi <kommi.haribabu@gmail.com>
Re: [HACKERS] Pluggable storage Amit Kapila <amit.kapila16@gmail.com>
Re: [HACKERS] Pluggable storage Haribabu Kommi <kommi.haribabu@gmail.com>
Re: [HACKERS] Pluggable storage Haribabu Kommi <kommi.haribabu@gmail.com>
Re: [HACKERS] Pluggable storage Thomas Munro <thomas.munro@enterprisedb.com>
Re: [HACKERS] Pluggable storage Haribabu Kommi <kommi.haribabu@gmail.com>
Re: [HACKERS] Pluggable storage Haribabu Kommi <kommi.haribabu@gmail.com>
Re: [HACKERS] Pluggable storage Haribabu Kommi <kommi.haribabu@gmail.com>
Re: [HACKERS] Pluggable storage Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Pluggable storage Haribabu Kommi <kommi.haribabu@gmail.com>
Re: [HACKERS] Pluggable storage Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Pluggable storage Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Pluggable storage Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Pluggable storage Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Pluggable storage Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Pluggable storage Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] Pluggable storage Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Pluggable storage Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Pluggable storage Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] Pluggable storage Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Pluggable storage Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Pluggable storage Amit Kapila <amit.kapila16@gmail.com>
Re: [HACKERS] Pluggable storage Haribabu Kommi <kommi.haribabu@gmail.com>
Re: [HACKERS] Pluggable storage Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Pluggable storage Haribabu Kommi <kommi.haribabu@gmail.com>
Re: [HACKERS] Pluggable storage Amit Kapila <amit.kapila16@gmail.com>
Re: [HACKERS] Pluggable storage Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Pluggable storage Amit Kapila <amit.kapila16@gmail.com>
Re: [HACKERS] Pluggable storage Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Pluggable storage Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] Pluggable storage Amit Kapila <amit.kapila16@gmail.com>
Re: [HACKERS] Pluggable storage Haribabu Kommi <kommi.haribabu@gmail.com>
Re: [HACKERS] Pluggable storage Haribabu Kommi <kommi.haribabu@gmail.com>
Re: [HACKERS] Pluggable storage Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] Pluggable storage Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] Pluggable storage Haribabu Kommi <kommi.haribabu@gmail.com>
Re: [HACKERS] Pluggable storage Haribabu Kommi <kommi.haribabu@gmail.com>
Re: [HACKERS] Pluggable storage Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Pluggable storage Haribabu Kommi <kommi.haribabu@gmail.com>
Re: [HACKERS] Pluggable storage Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Pluggable storage Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Pluggable storage Haribabu Kommi <kommi.haribabu@gmail.com>
Re: [HACKERS] Pluggable storage Haribabu Kommi <kommi.haribabu@gmail.com>
Re: [HACKERS] Pluggable storage Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Pluggable storage Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Pluggable storage Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Pluggable storage David Steele <david@pgmasters.net>
Re: [HACKERS] Pluggable storage Michael Paquier <michael@paquier.xyz>
Re: [HACKERS] Pluggable storage David Steele <david@pgmasters.net>
Re: [HACKERS] Pluggable storage Haribabu Kommi <kommi.haribabu@gmail.com>
Re: [HACKERS] Pluggable storage Haribabu Kommi <kommi.haribabu@gmail.com>
Re: [HACKERS] Pluggable storage Haribabu Kommi <kommi.haribabu@gmail.com>
Re: [HACKERS] Pluggable storage Amit Kapila <amit.kapila16@gmail.com>
Re: Pluggable storage AJG <ayden@gera.co.nz>
Re: Pluggable storage Andres Freund <andres@anarazel.de>
Re: Pluggable storage Amit Kapila <amit.kapila16@gmail.com>
Re: [HACKERS] Pluggable storage Haribabu Kommi <kommi.haribabu@gmail.com>
Re: [HACKERS] Pluggable storage Haribabu Kommi <kommi.haribabu@gmail.com>
Re: [HACKERS] Pluggable storage Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Pluggable storage Haribabu Kommi <kommi.haribabu@gmail.com>
Re: [HACKERS] Pluggable storage Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Pluggable storage Haribabu Kommi <kommi.haribabu@gmail.com>
Re: [HACKERS] Pluggable storage Kuntal Ghosh <kuntalghosh.2007@gmail.com>
Re: [HACKERS] Pluggable storage Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Pluggable storage Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Pluggable storage Amit Kapila <amit.kapila16@gmail.com>
Re: [HACKERS] Pluggable storage Haribabu Kommi <kommi.haribabu@gmail.com>
Re: [HACKERS] Pluggable storage Amit Kapila <amit.kapila16@gmail.com>
Re: [HACKERS] Pluggable storage Haribabu Kommi <kommi.haribabu@gmail.com>
Re: [HACKERS] Pluggable storage Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Pluggable storage Amit Kapila <amit.kapila16@gmail.com>
Re: [HACKERS] Pluggable storage Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Pluggable storage Haribabu Kommi <kommi.haribabu@gmail.com>
Re: [HACKERS] Pluggable storage Amit Kapila <amit.kapila16@gmail.com>
Re: Pluggable storage Anastasia Lubennikova <a.lubennikova@postgrespro.ru>
Re: Pluggable storage Anastasia Lubennikova <a.lubennikova@postgrespro.ru>
Re: Pluggable storage Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Pluggable storage Amit Kapila <amit.kapila16@gmail.com>
Re: Pluggable storage Robert Haas <robertmhaas@gmail.com>
Re: Pluggable storage Andres Freund <andres@anarazel.de>
Re: Pluggable storage Simon Riggs <simon@2ndquadrant.com>
Re: Pluggable storage Andres Freund <andres@anarazel.de>
Re: Pluggable storage Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: Pluggable storage Alexander Korotkov <a.korotkov@postgrespro.ru>
On Fri, Oct 13, 2017 at 1:58 PM, Haribabu Kommi wrote: > > On Fri, Oct 13, 2017 at 11:55 AM, Robert Haas wrote: >> >> On Thu, Oct 12, 2017 at 8:00 PM, Haribabu Kommi >> wrote: >> > Currently I added a snapshot_satisfies API to find out whether the tuple >> > satisfies the visibility or not with different types of visibility >> > routines. >> > I feel these >> > are some how enough to develop a different storage methods like UNDO. >> > The storage methods can decide internally how to provide the visibility. >> > >> > + amroutine->snapshot_satisfies[MVCC_VISIBILITY] = >> > HeapTupleSatisfiesMVCC; >> > + amroutine->snapshot_satisfies[SELF_VISIBILITY] = >> > HeapTupleSatisfiesSelf; >> > + amroutine->snapshot_satisfies[ANY_VISIBILITY] = HeapTupleSatisfiesAny; >> > + amroutine->snapshot_satisfies[TOAST_VISIBILITY] = >> > HeapTupleSatisfiesToast; >> > + amroutine->snapshot_satisfies[DIRTY_VISIBILITY] = >> > HeapTupleSatisfiesDirty; >> > + amroutine->snapshot_satisfies[HISTORIC_MVCC_VISIBILITY] = >> > HeapTupleSatisfiesHistoricMVCC; >> > + amroutine->snapshot_satisfies[NON_VACUUMABLE_VISIBILTY] = >> > HeapTupleSatisfiesNonVacuumable; >> > + >> > + amroutine->snapshot_satisfiesUpdate = HeapTupleSatisfiesUpdate; >> > + amroutine->snapshot_satisfiesVacuum = HeapTupleSatisfiesVacuum; >> > >> > Currently no changes are carried out in snapshot logic as that is kept >> > seperate >> > from storage API. >> >> That seems like a strange choice of API. I think it should more >> integrated with the scan logic. For example, if I'm doing an index >> scan, and I get a TID, then I should be able to just say "here's a >> TID, give me any tuples associated with that TID that are visible to >> the scan snapshot". Then for the current heap it will do >> heap_hot_search_buffer, and for zheap it will walk the undo chain and >> return the relevant tuple from the chain. > > > OK, Understood. > I will check along these lines and come up with storage API's. > I think what we need here is a way to register satisfies function (SnapshotSatisfiesFunc) in SnapshotData for different storage engines. That is the core API to decide visibility with respect to different storage engines. -- With Regards, Amit Kapila. EnterpriseDB: http://www.enterprisedb.com -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
В списке pgsql-hackers по дате отправления
От: Justin Pryzby
Дата: