| From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
|---|---|
| To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
| Cc: | "Ross J(dot) Reedstrom" <reedstrm(at)wallace(dot)ece(dot)rice(dot)edu>, Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, pgsql-patches(at)postgresql(dot)org |
| Subject: | Re: RE: [PATCHES] relation filename patch |
| Date: | 2000-05-02 21:26:48 |
| Message-ID: | 200005022126.RAA25556@candle.pha.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
> > Our code even masks a real table created in the same session. Once
> > the temp table is dropped, the real table becomes visible again. See
> > the regression tests for an example of this.
>
> The real problem here is that there's no way of finding out whether you
> just dropped the temporary table or the "real" one or whether a table is
> temporary at all. Sure you can perhaps look into pg_class but tell that to
> users.
Do a \d on the table. If it doesn't show up, it is temporary. ;-)
--
Bruce Momjian | http://www.op.net/~candle
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Eisentraut | 2000-05-02 21:28:14 | Re: RE: [PATCHES] relation filename patch |
| Previous Message | Tom Lane | 2000-05-02 21:26:09 | Re: Proposal for fixing intra-query memory leaks |