Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Interfaces Pgadmin Support > Small feature r...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 1954 of 2083
Post > Topic >>

Small feature request for pgadmin 1.8.2: in Create script window show merged columns as '-- Merged' instead of '-- Inherited'

by heartofmars@[EMAIL PROTECTED] (Peter Gagarinov) Feb 21, 2008 at 11:56 PM

Hello,

While playing with inheritence in Postgres 8.3 I've discovered that
inherited columns behave differently depending on whether they were
merged on not (though it may sound trivial for Postgres gurus).

Prerequisites:


1) In this case table beta contains 'truly' inherited column 'a'
marked as '-- Inherited' by pgAdmin:

create table alpha
(
a integer
);
create table beta
(
) inherits(alpha);

2) In this case table beta contains inherited & MERGED column 'a'
which is also marked as '-- Inherited':

create table alpha
(
a integer
);
create table beta
(
a integer
);
alter table beta inherit alpha;


Merged column behaves differently (compared to 'purely' inherited),
namely when column 'a' is dropped in parent table 'alpha' by issuing

alter table alpha drop column a;

command.

In case 1) this command deletes column from table 'beta' while in case
 2) the column 'a' in table 'beta' remains untouched.


Request:

Could you please consider marking 'merged' columns as '-- Merged'
instead of just '-- Inherited' since this would allow for easy
identification of merged columns.

Regards,
Peter


---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

               http://archives.postgresql.org
 




 1 Posts in Topic:
Small feature request for pgadmin 1.8.2: in Create script window
heartofmars@[EMAIL PROTEC  2008-02-21 23:56:37 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Thu Jul 24 6:56:49 CDT 2008.