Step ordering pgAgent - Mailing list pgadmin-hackers

From Jasmin Dizdarevic
Subject Step ordering pgAgent
Date
Msg-id AANLkTi=Gen+gjF-7vqEicFKK5dr1jH5kKwkg2k+doRw+@mail.gmail.com
Whole thread Raw
Responses Re: Step ordering pgAgent
List pgadmin-hackers
Hi, 
I'm starting another thread for this topic. You'll find the last comment from Dave at the bottom.

> 1. Step ordering
>     I suggest adding a column named "jstorder" to pgagent.pga_jobsteps, so
> we don't have to rename the steps "A_", "B_" if an ordering is required. In
> the GUI we would add an integer field to the "Change Step" mask.

> Hi,
> I'm not so keen on that - it could require some funky code to ensure
> that the user uses sequential (or at least, non-duplicate) numbers
> across all steps and would be a pain to upgrade to. Plus, there is
> precedence for using alpha ordering - that's how triggers work

>> I don't think that we must ensure that no duplicate values are used. With
>> changing the "order by jstname,jstid" clause to "order by
>> jstorder,jstname,jstid" we would have a fall back on alpha ordering.
>> Steps with "jstorder" = null would be executed last - so there is no need to
>> upgrade. To give the user feedback about ordering in pgadmin, the steps
>> could be ordered the same way in tree view and steps tab in job properties
>> dialog. We could also add the jstorder-column to the list view.

What do others think? I'm still not convinced this is necessary - and
it certainly will become inconsistent with triggers.

pgadmin-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: Support for unlogged tables
Next
From: Magnus Hagander
Date:
Subject: Re: code.pgadmin.org