| From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
|---|---|
| To: | Bruce McAlister <bruce(dot)mcalister(at)blueface(dot)ie> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: PostgreSQL 8.2.3 VACUUM Timings/Performance |
| Date: | 2007-03-18 16:54:29 |
| Message-ID: | 20070318165429.GD5722@svana.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general pgsql-performance |
On Fri, Mar 16, 2007 at 07:06:57PM -0000, Bruce McAlister wrote:
> Okay, I'm getting a little further now. I'm about to create entries in the
> pg_autovacuum system tables. However, I'm a little confused as to how I go
> about finding out the OID value of the tables. The pg_autovacuum table
> requires the OID of the table you want to create settings for (vacrelid).
> Can anyone shed some light on how I can extract the OID of the table? Also,
> what happens if you create a table without OID's, are you still able to add
> it's details in the pg_autovacuum table if there is no OID associated with a
> table?
The easiest would seem to be to be:
SELECT 'mytable'::regclass;
That will get you the OID without you having to look it up yourself.
Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tijnema ! | 2007-03-18 17:02:51 | Re: [PHP] phpPgAdmin - prior version available? |
| Previous Message | Tom Lane | 2007-03-18 16:47:09 | Re: Is This A Set Based Solution? |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Rangarajan Vasudevan | 2007-03-18 18:22:30 | Re: Performance Tuning and Disk Cache |
| Previous Message | David Boreham | 2007-03-18 15:26:37 | Re: Performance Tuning and Disk Cache |