From: | Haribabu Kommi <kommi(dot)haribabu(at)gmail(dot)com> |
---|---|
To: | Andres Freund <andres(at)anarazel(dot)de> |
Cc: | Robert Haas <robertmhaas(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>, Alexander Korotkov <a(dot)korotkov(at)postgrespro(dot)ru>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> |
Subject: | Re: What to name the current heap after pluggable storage / what to rename? |
Date: | 2019-01-11 05:12:26 |
Message-ID: | CAJrrPGee9FFK3RttGoB-TmX30Jbj3nQOs-DpRdsZPhKBoYRK7w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Fri, Jan 11, 2019 at 11:05 AM Andres Freund <andres(at)anarazel(dot)de> wrote:
> Hi,
>
> On 2018-12-19 14:21:29 -0500, Robert Haas wrote:
> > On Tue, Dec 18, 2018 at 11:17 PM Andres Freund <andres(at)anarazel(dot)de>
> wrote:
> > > Another would be to be aggressive in renaming, and deconflict by
> > > renaming functions like heap_create[_with_catalog] etc to sound more
> > > accurate. I think that has some appeal, because a lot of those names
> > > aren't describing their tasks particularly well.
> >
> > I like that option.
>
> I'd like to start doing that by moving the functions in the following
> heapam.h block elsewhere:
>
> /* in heap/heapam.c */
> extern Relation relation_open(Oid relationId, LOCKMODE lockmode);
> extern Relation try_relation_open(Oid relationId, LOCKMODE lockmode);
> extern Relation relation_openrv(const RangeVar *relation, LOCKMODE
> lockmode);
> extern Relation relation_openrv_extended(const RangeVar *relation,
> LOCKMODE lockmode, bool
> missing_ok);
> extern void relation_close(Relation relation, LOCKMODE lockmode);
>
> extern Relation heap_open(Oid relationId, LOCKMODE lockmode);
> extern Relation heap_openrv(const RangeVar *relation, LOCKMODE lockmode);
> extern Relation heap_openrv_extended(const RangeVar *relation,
> LOCKMODE lockmode, bool
> missing_ok);
>
> ISTM that the first block would best belong into new files like
> access/rel[ation].h and access/common/rel[ation].h. I think the second
> set should be renamed to be table_open() (with backward compat
> redirects, there's way way too many references) and should go into
> access/table.h access/table/table.c alongside tableam.[ch], but I could
> also see just putting them into relation.[ch].
>
> Comments?
>
Yes, that will be good.
Regards,
Haribabu Kommi
Fujitsu Australia
From | Date | Subject | |
---|---|---|---|
Next Message | Chapman Flack | 2019-01-11 05:19:34 | Re: doc: where best to add ~ 400 words to the manual? |
Previous Message | Amit Khandekar | 2019-01-11 05:01:59 | Re: Displaying and dumping of table access methods |