Обсуждение: Support for constraint trigger (8.2 feature)

Поиск
Список
Период
Сортировка

Support for constraint trigger (8.2 feature)

От
Guillaume Lelarge
Дата:
Hi,

Here is a patch that adds support for the constraint trigger, a feature
available since 8.2.

This patch adds a Constraint checkbox and the deferrable and deferred
checkboxes. Note that the "FROM referenced_table_name" clause is not
implemented as it "is not recommended for general use" according to the
manual.

I'm not sure the design is really good as I had to increase the dialog's
height quite a lot. It would probably be a good idea to add a new tab
and push some controls over there.

Comments?


--
Guillaume
 http://www.postgresql.fr
 http://dalibo.com

Re: Support for constraint trigger (8.2 feature)

От
Dave Page
Дата:


On Sun, Mar 20, 2011 at 4:12 PM, Guillaume Lelarge <guillaume@lelarge.info> wrote:
Hi,

Here is a patch that adds support for the constraint trigger, a feature
available since 8.2.

This patch adds a Constraint checkbox and the deferrable and deferred
checkboxes. Note that the "FROM referenced_table_name" clause is not
implemented as it "is not recommended for general use" according to the
manual.

I'm not sure the design is really good as I had to increase the dialog's
height quite a lot. It would probably be a good idea to add a new tab
and push some controls over there.

It's certainly far too high, but then the WHEN and Comment boxes could be reduced significantly.

FYI, moving forward I think we should make a concerted effort to ensure that all dialogues can be used on an 800x600 screen, allowing for some sort of task bar. 

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Re: Support for constraint trigger (8.2 feature)

От
Guillaume Lelarge
Дата:
Le 22/03/2011 15:59, Dave Page a écrit :
> On Sun, Mar 20, 2011 at 4:12 PM, Guillaume Lelarge
> <guillaume@lelarge.info>wrote:
>
>> Hi,
>>
>> Here is a patch that adds support for the constraint trigger, a feature
>> available since 8.2.
>>
>> This patch adds a Constraint checkbox and the deferrable and deferred
>> checkboxes. Note that the "FROM referenced_table_name" clause is not
>> implemented as it "is not recommended for general use" according to the
>> manual.
>>
>> I'm not sure the design is really good as I had to increase the dialog's
>> height quite a lot. It would probably be a good idea to add a new tab
>> and push some controls over there.
>>
>
> It's certainly far too high, but then the WHEN and Comment boxes could be
> reduced significantly.
>

They could be reduced, but I don't think it'll be significant.

> FYI, moving forward I think we should make a concerted effort to ensure that
> all dialogues can be used on an 800x600 screen, allowing for some sort of
> task bar.
>

Could be interesting, but you lost me with the task bar thingie. What's
your idea?


--
Guillaume
 http://www.postgresql.fr
 http://dalibo.com

Re: Support for constraint trigger (8.2 feature)

От
Dave Page
Дата:


On Tue, Mar 22, 2011 at 3:47 PM, Guillaume Lelarge <guillaume@lelarge.info> wrote:
Le 22/03/2011 15:59, Dave Page a écrit :
> On Sun, Mar 20, 2011 at 4:12 PM, Guillaume Lelarge
> <guillaume@lelarge.info>wrote:
>
>> Hi,
>>
>> Here is a patch that adds support for the constraint trigger, a feature
>> available since 8.2.
>>
>> This patch adds a Constraint checkbox and the deferrable and deferred
>> checkboxes. Note that the "FROM referenced_table_name" clause is not
>> implemented as it "is not recommended for general use" according to the
>> manual.
>>
>> I'm not sure the design is really good as I had to increase the dialog's
>> height quite a lot. It would probably be a good idea to add a new tab
>> and push some controls over there.
>>
>
> It's certainly far too high, but then the WHEN and Comment boxes could be
> reduced significantly.
>

They could be reduced, but I don't think it'll be significant.

Maybe it's just on the Mac, but there's a heck of a lot of wasted space here. See the attached screenshot for an example.
 

> FYI, moving forward I think we should make a concerted effort to ensure that
> all dialogues can be used on an 800x600 screen, allowing for some sort of
> task bar.
>

Could be interesting, but you lost me with the task bar thingie. What's
your idea?

You need to allow some space for the task bar - the thing with the Start menu on it on Windows, the system menu bar in Gnome and the app menu bar in OSX.

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Вложения

Re: Support for constraint trigger (8.2 feature)

От
Guillaume Lelarge
Дата:
Le 22/03/2011 17:17, Dave Page a écrit :
> On Tue, Mar 22, 2011 at 3:47 PM, Guillaume Lelarge
> <guillaume@lelarge.info>wrote:
>
>> Le 22/03/2011 15:59, Dave Page a écrit :
>>> On Sun, Mar 20, 2011 at 4:12 PM, Guillaume Lelarge
>>> <guillaume@lelarge.info>wrote:
>>>
>>>> Hi,
>>>>
>>>> Here is a patch that adds support for the constraint trigger, a feature
>>>> available since 8.2.
>>>>
>>>> This patch adds a Constraint checkbox and the deferrable and deferred
>>>> checkboxes. Note that the "FROM referenced_table_name" clause is not
>>>> implemented as it "is not recommended for general use" according to the
>>>> manual.
>>>>
>>>> I'm not sure the design is really good as I had to increase the dialog's
>>>> height quite a lot. It would probably be a good idea to add a new tab
>>>> and push some controls over there.
>>>>
>>>
>>> It's certainly far too high, but then the WHEN and Comment boxes could be
>>> reduced significantly.
>>>
>>
>> They could be reduced, but I don't think it'll be significant.
>>
>
> Maybe it's just on the Mac, but there's a heck of a lot of wasted space
> here. See the attached screenshot for an example.
>

OK. I'll try to lower them.

>>> FYI, moving forward I think we should make a concerted effort to ensure
>> that
>>> all dialogues can be used on an 800x600 screen, allowing for some sort of
>>> task bar.
>>>
>>
>> Could be interesting, but you lost me with the task bar thingie. What's
>> your idea?
>
>
> You need to allow some space for the task bar - the thing with the Start
> menu on it on Windows, the system menu bar in Gnome and the app menu bar in
> OSX.
>

Oh OK. I thought you were talking about a pgAdmin specific task bar.

Do you mind if I commit this patch (but with smaller textboxes), and
then work on smaller dialogs?


--
Guillaume
 http://www.postgresql.fr
 http://dalibo.com

Re: Support for constraint trigger (8.2 feature)

От
Dave Page
Дата:
Go for it.

On 3/22/11, Guillaume Lelarge <guillaume@lelarge.info> wrote:
> Le 22/03/2011 17:17, Dave Page a écrit :
>> On Tue, Mar 22, 2011 at 3:47 PM, Guillaume Lelarge
>> <guillaume@lelarge.info>wrote:
>>
>>> Le 22/03/2011 15:59, Dave Page a écrit :
>>>> On Sun, Mar 20, 2011 at 4:12 PM, Guillaume Lelarge
>>>> <guillaume@lelarge.info>wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> Here is a patch that adds support for the constraint trigger, a feature
>>>>> available since 8.2.
>>>>>
>>>>> This patch adds a Constraint checkbox and the deferrable and deferred
>>>>> checkboxes. Note that the "FROM referenced_table_name" clause is not
>>>>> implemented as it "is not recommended for general use" according to the
>>>>> manual.
>>>>>
>>>>> I'm not sure the design is really good as I had to increase the
>>>>> dialog's
>>>>> height quite a lot. It would probably be a good idea to add a new tab
>>>>> and push some controls over there.
>>>>>
>>>>
>>>> It's certainly far too high, but then the WHEN and Comment boxes could
>>>> be
>>>> reduced significantly.
>>>>
>>>
>>> They could be reduced, but I don't think it'll be significant.
>>>
>>
>> Maybe it's just on the Mac, but there's a heck of a lot of wasted space
>> here. See the attached screenshot for an example.
>>
>
> OK. I'll try to lower them.
>
>>>> FYI, moving forward I think we should make a concerted effort to ensure
>>> that
>>>> all dialogues can be used on an 800x600 screen, allowing for some sort
>>>> of
>>>> task bar.
>>>>
>>>
>>> Could be interesting, but you lost me with the task bar thingie. What's
>>> your idea?
>>
>>
>> You need to allow some space for the task bar - the thing with the Start
>> menu on it on Windows, the system menu bar in Gnome and the app menu bar
>> in
>> OSX.
>>
>
> Oh OK. I thought you were talking about a pgAdmin specific task bar.
>
> Do you mind if I commit this patch (but with smaller textboxes), and
> then work on smaller dialogs?
>
>
> --
> Guillaume
>  http://www.postgresql.fr
>  http://dalibo.com
>


--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Re: Support for constraint trigger (8.2 feature)

От
Guillaume Lelarge
Дата:
Le 22/03/2011 23:57, Dave Page a écrit :
> Go for it.
>

Done, and commited. Thanks.


--
Guillaume
 http://www.postgresql.fr
 http://dalibo.com