Re: pgsql/src/backend/storage/smgr (smgr.c)

From: Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql/src/backend/storage/smgr (smgr.c)
Date: 2000-11-13 23:54:31
Message-ID: 3A107F37.A883C5E4@tpf.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Tom Lane wrote:

> inoue(at)postgresql(dot)org writes:
> > prevent open failure of VIEW
>
> I do not like this fix. We should be moving away from having smgr
> access relcache entries, not adding more relcache knowledge to it.
> So checks for view-ness should be at a higher level.
>
> What case were you seeing a failure in?
>

I see the failure in xlogutils.c.
Oops I'm mistaken,another is smgrnblocks call
in RelationGetNumberOfBlocks() and I didn't
change it at all.
I don't like this fix either and I intend to change
at higher level first. However it seems to me
that checking relkind every time is not only ugly
but also unreliable.

I don't stick to my change.
Please change as you prefer.

Regards.
Hiroshi Inoue

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message momjian 2000-11-13 23:57:20 pgsql/doc/src/sgml/ref (createdb.sgml createlang.sgml createuser.sgml dropdb.sgml droplang.sgml dropuser.sgml pg_dump.sgml pg_dumpall.sgml pg_restore.sgml postmaster.sgml psql-ref.sgml vacuumdb.sgml)
Previous Message momjian 2000-11-13 23:37:54 pgsql/src/interfaces/libpq (fe-connect.c libpq-int.h)