chiark / gitweb /
Instructions for deleting black dye
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 27 Aug 2009 14:54:49 +0000 (15:54 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 27 Aug 2009 14:54:49 +0000 (15:54 +0100)
yarrg/devel-notes

index fef5adc8bdb748477cb5f0418734f2fb245affea..f4f6066788c045383e68aac313b237c156e65d85 100644 (file)
@@ -1,9 +1,28 @@
+
+removing an obsolete commodity:
+
+  select * from (select * from sell union select * from buy) left outer join commods using (commodid) where commods.commodname = 'Black dye' limit 10;
+
+if that produces no output then:
+
+  begin;
+  delete from commods where commodname like 'Black dye';
+  select * from (select * from sell union select * from buy) left outer join commods using (commodid) where commods.commodname is null limit 10;
+
+and if that produces no output then:
+  commit;
+otherwise
+  rollback;
+
+=======================================
+
 ceb's example route:
   alpha,byrne,papaya,turtle,jorvik,luthien
 
 example mixed arbitrage/trade
   xi,heph
 
 ceb's example route:
   alpha,byrne,papaya,turtle,jorvik,luthien
 
 example mixed arbitrage/trade
   xi,heph
 
+========================================
 
 To remedy bug fixed in 01c14767c024ac56686dbbfcd88d9f3a0b4b1574,
 did this:
 
 To remedy bug fixed in 01c14767c024ac56686dbbfcd88d9f3a0b4b1574,
 did this: