Re: Query to generate CREATE INDEX statement from - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Query to generate CREATE INDEX statement from
Date
Msg-id 8586.1300926067@sss.pgh.pa.us
Whole thread Raw
In response to Query to generate CREATE INDEX statement from  (Andrew Hammond <andrew.george.hammond@gmail.com>)
List pgsql-hackers
Andrew Hammond <andrew.george.hammond@gmail.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


pgsql-hackers by date:

Previous
From: Cédric Villemain
Date:
Subject: Re: Query to generate CREATE INDEX statement from
Next
From: Gokulakannan Somasundaram
Date:
Subject: Re: crash-safe visibility map, take four