Re: Regarding column reordering project for GSoc 2012

From: "Atri Sharma" <atri(dot)jiit(at)gmail(dot)com>
To: "'Andrew Dunstan'" <andrew(at)dunslane(dot)net>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Regarding column reordering project for GSoc 2012
Date: 2012-03-17 17:13:10
Message-ID: 4f64c62c.2a18440a.7639.ffffbca2@mx.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Thanks Andrew.

I went through the link. Here is my idea:

I believe we can build a "middle" layer that encapsulates the physical
details from the user and gives him/her a VIEW that is actually generated by
the system itself. That means, we have a system such as:

LOGICAL LAYER
--------------
MIDDLE LAYER
--------------
PHYSICAL LAYER.

Now, the punch would be, the middle layer would be on the client. The middle
layer is more of an interface for the user which he/she can completely
customize.

Now, what is actually happening is that each component is mapped to their
physical address. I am planning to make a struct which will be the mapping
between the physical address and the logical address.I have not yet decided
on the design of the struct,but I plan an id , the type and the physical
address.When a component is used in the middle layer,it is represented in an
instantiation of the struct which is unchangeable throughout.Whenever we
need to customize the middle layer,we just need to reorder the components.

For our specific case,the reordering of table columns,we need not change the
schema or the physical ordering.All we need to do is,reorder the
components.One ALTER statement(with added customized clauses) will do the
reordering.The mapping remains constant,because,the struct instantiations of
the components remain constant,hence,the mapping remains constant and we can
access the physical address of any component at any time.

Please let me know your feedback on the idea.

Atri

-----Original Message-----
From: Andrew Dunstan [mailto:andrew(at)dunslane(dot)net]
Sent: 17 March 2012 21:30
To: Atri Sharma
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] Regarding column reordering project for GSoc 2012

On 03/17/2012 04:39 AM, Atri Sharma wrote:
> Hi All,
>
> I am Atri Sharma.I am a C developer with experience in database
> designing and database management systems.I have worked with
> MySql,Oracle and other database systems.I have designed databases for
> various projects as well.
>
> I would be interested in developing the column reordering project by a
> single ALTER command.I have an idea in mind that would solve
> theproblem in a very easy way.
>
> Please let me know how to proceed further on this.
>

You should review the history on this. See
<http://archives.postgresql.org/message-id/1324412114-sup-9608@alvh.no-ip.or
g>
as a good place to start.

You should be aware that anything that doesn't follow the previous
discussions is likely to be rejected. But if you can do something that
does implement what was previously discussed, that would be awesome.

cheers

andrew

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Atri Sharma 2012-03-17 17:24:58 Re: Regarding column reordering project for GSoc 2012
Previous Message Cédric Villemain 2012-03-17 16:48:38 Re: initdb and fsync