Unix Technical Forum

Re: [PATCHES] [Fwd: Index Advisor]

This is a discussion on Re: [PATCHES] [Fwd: Index Advisor] within the pgsql Hackers forums, part of the PostgreSQL category; --> On 4/12/07, Bruce Momjian <bruce@momjian.us> wrote: > > Gurjeet Singh wrote: > > The interface etc. may not be ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-12-2008, 08:16 AM
Gurjeet Singh
 
Posts: n/a
Default Re: [PATCHES] [Fwd: Index Advisor]

On 4/12/07, Bruce Momjian <bruce@momjian.us> wrote:
>
> Gurjeet Singh wrote:
> > The interface etc. may not be beautiful, but it isn't ugly either!

> It is
> > a lot better than manually creating pg_index records and inserting them

> into
> > cache; we use index_create() API to create the index (build is

> deferred),
> > and then 'rollback to savepoint' to undo those changes when the advisor

> is
> > done. index_create() causes pg_depends entries too, so a 'RB to SP' is

> far
> > much safer than going and deleting cache records manually.

>
> My complaint was not that the API used in the code was non-optimal(which
> I think was Tom's issue), but that the _user_ API was not very clean.
> Not sure what to recommend, but I will think about it later.
>
>

That can be fixed/improved with minimal efforts, but if it is the internal
API usage, or the architecture we're bothered about, then IMO just an
overhaul of the code will not be sufficient, rather, it will require rework
from scratch.

Best regards,
--
gurjeet[.singh]@EnterpriseDB.com
singh.gurjeet@{ gmail | hotmail | yahoo }.com

17°29'34.37"N 78°30'59.76"E - Hyderabad
18°32'57.25"N 73°56'25.42"E - Pune *

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:29 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com