Re: Scanning pg_tablespace from walsender

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Scanning pg_tablespace from walsender
Date: 2011-01-03 15:43:54
Message-ID: 1294069370-sup-3249@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Excerpts from Magnus Hagander's message of lun ene 03 12:25:28 -0300 2011:

> Can someone throw me a pointer or two on how to actually do that? :-)
> Am I correct in assuming I need to add it to
> RelationCacheInitializePhase2(), and to do that, need to figure out
> how to define a TableSpaceRelation_Rowtype_Id in the headers? Or is
> there an easier way I'm missing?

I think you just need to add BKI_ROWTYPE_OID and BKI_SCHEMA_MACRO to
pg_tablespace.h (yes, and pick a suitable OID for the rowtype). Then
figure out formrdesc.

HTH

--
Álvaro Herrera <alvherre(at)commandprompt(dot)com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Brar Piening 2011-01-03 15:45:16 Re: Visual Studio 2010/Windows SDK 7.1 support
Previous Message Magnus Hagander 2011-01-03 15:42:35 Re: Scanning pg_tablespace from walsender