"set schema" patch

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: pgadmin-hackers(at)postgresql(dot)org, Dave Page <dpage(at)postgresql(dot)org>
Subject: "set schema" patch
Date: 2007-12-28 14:57:51
Message-ID: 47750EEF.5030904@lelarge.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi,

This patch adds a schema combobox on some objets' dialog : aggregate,
conversion, domain, function, sequence, table, type, view. There are two
EDB objects that probably need it too : package and synonym. Dave, can
you tell me if they are dependants on schema ? and do they use the same
SQL statement to alter their schema ? thanks.

The patch attached is not finished. I have one big issue with it. It
seems I can't alter the schema of a function. The call to ShowObject()
in dlgProperty::apply() fails. It seems this statement
pgObject *newData=data->Refresh(mainForm->GetBrowser(), item);
crashes pgAdmin (core dump), but I have no clue to explain this. It
don't even know why it crashes with functions, but works with the other
objects.

If I can find a solution to this issue, it'll probably solve this second
(and last) issue. I've put some of my code in comments in OnOK()
function. I wrote this code to refresh the "Schemas" node. It seemed to
work fine Thursday morning, but didn't want to work since. Is there
something wrong with my way to refresh the "Schemas" node? Is there
another way ?

Thanks for any tips.

Regards.

--
Guillaume.
http://www.postgresqlfr.org
http://dalibo.com

Attachment Content-Type Size
setschema.patch.bz2 application/octet-stream 6.6 KB

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message svn 2007-12-30 17:57:37 SVN Commit by dpage: r6921 - trunk/pgadmin3/i18n/zh_TW
Previous Message Guillaume Lelarge 2007-12-28 14:43:58 Re: Schema and tablespace