Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group