Re: Query to generate CREATE INDEX statement from

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrew Hammond <andrew(dot)george(dot)hammond(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Query to generate CREATE INDEX statement from
Date: 2011-03-24 00:21:07
Message-ID: 8586.1300926067@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andrew Hammond <andrew(dot)george(dot)hammond(at)gmail(dot)com> writes:
> I'm building some partitioning support functions. I'm working on writing one
> called clone_indexes_to_partition right now. The idea is to take all the
> indexes applied to the parent and create a matching index on the child. Is
> there existing code that generates a CREATE INDEX statement given an
> indexrelid?

pg_get_indexdef

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Gokulakannan Somasundaram 2011-03-24 04:56:44 Re: crash-safe visibility map, take four
Previous Message Cédric Villemain 2011-03-24 00:16:09 Re: Query to generate CREATE INDEX statement from