/srv/irclogs.ubuntu.com/2012/12/14/#launchpad-dev.txt

=== slank is now known as slank_away
* StevenK stabs sampledata01:00
StevenKI guess my testfix is to run the garbo job against sampledata01:00
wgrantIndeed01:03
wgrantAlso, i'm not sure we can actually optimise the SET NOT NULLs01:03
wgrantpostgres is a bit stupid01:04
StevenK:-(01:04
wgrantIt doesn't actually use indices at all01:04
StevenKWow01:04
wgrantWhen you add a new NOT NULL constraint to a table, it goes through every tuple and verifies that every NOT NULL constraint is satisfied01:05
StevenKWe can probably do it in two patches01:05
StevenKBut it will still make those two FDTs 5 seconds long01:05
wgrantNah, best to do it in one patch01:07
wgrantOne statement can alter two columns.01:07
wgrantSo we can do both in two seconds01:08
wgrant(on DF)01:08
StevenKOh01:08
StevenKIt's just a comma?01:08
wgrantRight01:08
wgrantlaunchpad_dogfood=# ALTER TABLE packageupload ALTER COLUMN searchable_names SET NOT NULL, ALTER COLUMN searchable_versions SET NOT NULL;01:08
wgrantALTER TABLE01:08
wgrantTime: 2210.737 ms01:08
wgrant(or we could just manually set attnotnull, I guess :))01:12
wgrantThat's probably not too evil01:12
StevenKHahaha01:12
wgrantI'm serious01:12
wgrantIt's a reasonable thing to do01:12
StevenKThat won't check each tuple?01:12
wgrantNo01:13
wgrantHuh, in fact, manually setting attnotnull was the only way back in 7.001:13
StevenKHeh01:13
wgrantYeah, that would work fine, looking at the code and some tests. But that would want to wait until stub is back :)01:15
StevenKDoes attnotnull take a full table lock?01:15
StevenKRight, so my sampledata changes do fix that test01:18
wgrantThat was the only failure?01:18
StevenKAnd one whole container failed to come up, it seems01:18
StevenKMaybe not, given the count01:18
StevenKOne 'Launchpad failed to start in 60 attempts' old chestnut01:19
wgrantOne could set attnotnull without taking a full table lock, given that we know the data is good, but that seems a bit evil. ALTER TABLE ... ALTER COLUMN ... SET NOT NULL takes a full access exclusive lock to avoid any null tuples being inserted under its nose, and also to avoid any potential plan changes on other mid-flight queries, but neither is relevant here.01:19
StevenKIndeed01:20
StevenKThe columns won't be created NULL, and nothing else is reading it01:20
wgrantBut we could probably just pay the 2s01:20
StevenKWell, Storm will be, but it won't be paying attention01:20
StevenKwgrant: And yes, only one failure01:21
StevenKwgrant: Self-review? It runs the garbo job against dev,test-playground01:22
StevenK 2 files changed, 30 insertions(+), 30 deletions(-)01:22
wgrantFine01:23
StevenKRight, testfix landed01:26
* StevenK stabs buildbot02:47
StevenKwgrant: I wonder if postgres isn't using indicies because they can be out of date. Is that completly wrong, and it should use indicies if they exist?03:21
wgrantGiven an access exclusive lock as it takes now, an index should be usable.03:23
StevenKSo it's arguably a bug that it won't check an index?03:23
wgrantNot a bug.03:24
wgrantA potential future optimisation.03:24
StevenKWhich may get filed as a bug ... :-)03:24
StevenKBuildbot is finally done03:26
StevenKNow to wait for qas to update03:27
=== Ursinha is now known as Ursinha-afk
=== yofel_ is now known as yofel
=== mthaddon` is now known as mthaddon
=== Ursinha-afk is now known as Ursinha
=== slank_away is now known as slank
=== cjwatson_ is now known as cjwatson
=== Ursinha_ is now known as Ursinha
sinzuijcsackett, rick_h_, do either you you have time to look at my WCAG fix for  the structural subscription widget: https://code.launchpad.net/~sinzui/launchpad/bugs-subscriptons-wcag-love/+merge/13981215:02
jcsackettsinzui: i can look.15:02
jcsackettsinzui: r=me. and bonus points for using OMG in the cover letter. :-)15:14
sinzuithank you15:15
timrcsinzui, if I change the bug sharing policy, it only applies to new bugs... it won't retroactively apply to existing bugs?15:54
sinzuicorrect15:55
sinzuitimrc, I have a script that walks over all bugs and branches and tries to change the into type. Would you like a copy in cases where you do want to change them all?15:56
timrcsinzui, sure, I'd be interested in that script15:56
timrcI think we have people going rogue and screwing around with their sharing policies... do you have a script that slaps people too? :)15:57
=== matsubara is now known as matsubara-lunch
timrcsinzui, OK, I think I see the error of my ways.  So when I create a bug in a project with a proprietary bug sharing policy, the new bug defaults to proprietary.  To make it sharable between projects it has to be changed to private...16:14
sinzuiyes. Someone needs to vet the information to be certain the bug can be shared with another project how can also choose to make it public16:16
sinzuitimrc, as for slapping user who screw up the policies, I am open to suggestion for punishment so long as it is equal to the burden they inflict upon others...16:19
sinzuiI still see people not sharing with ~canonical, so we are locked out and we need to stop work and fix the project.16:20
=== matsubara-lunch is now known as matsubara
=== deryck is now known as deryck[lunch]
=== deryck[lunch] is now known as deryck
=== Ursinha is now known as Ursinha-afk
=== benji___ is now known as benji
=== slank is now known as slank_away

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!