Path: csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.018 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'received:209.85.223': 0.03; 'postgresql': 0.07; 'table.': 0.07; 'alter': 0.09; 'back- end': 0.09; 'rewrite': 0.09; 'cc:addr:python-list': 0.11; 'assume': 0.14; 'fine.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'json,': 0.16; 'subject:dates': 0.16; 'subject:sqlite3': 0.16; 'files.': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'basically': 0.19; 'server,': 0.19; 'work,': 0.20; 'feb': 0.22; 'network,': 0.22; 'cc:addr:python.org': 0.22; 'bar.': 0.24; 'choices': 0.24; 'features,': 0.24; 'fine': 0.24; 'file.': 0.24; 'cc:2**0': 0.24; 'switch': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; "doesn't": 0.30; 'involving': 0.30; 'message- id:@mail.gmail.com': 0.30; 'that.': 0.31; 'too.': 0.31; '(on': 0.31; 'accountant': 0.31; 'piece': 0.31; 'file': 0.32; 'probably': 0.32; 'regular': 0.32; 'quite': 0.32; 'linux': 0.33; 'running': 0.33; 'maybe': 0.34; 'basic': 0.35; "can't": 0.35; 'received:209.85': 0.35; 'tool': 0.35; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'version': 0.36; "didn't": 0.36; 'thanks': 0.36; 'similar': 0.36; 'should': 0.36; 'effort': 0.37; 'wrong': 0.37; 'received:209': 0.37; 'pm,': 0.38; 'called': 0.40; 'users': 0.40; 'flat': 0.60; 'truly': 0.60; 'up,': 0.60; 'full': 0.61; "you're": 0.61; 'more': 0.64; 'offer,': 0.65; 'jobs': 0.68; 'nobody': 0.68; 'facilities': 0.69; 'money': 0.72; 'surprise': 0.74; '10:11': 0.84; '2015': 0.84; 'blob': 0.84; 'fat': 0.84; 'to:none': 0.92; 'serious': 0.97 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=DKIMKR+zFBSNOyHQ2YNzu2IPKb7h680nRe/w0RbTrAU=; b=OUVyJ8CQKoByJuHKec7gTA7JW9tasyHas4pVpgSKCASUDrUHLjj56fmnrO32qKkXe8 u9EI4I+hv9wXdib0LpXgVL5qPBZ+RzZkdfgSV5Bu5HfyyJOM6ntgu3Bcfr0/zAMVeF3v OejciwFUbKaqmHiM91cDt306ruKbt2mu2Oto0iv0rtuagnVk0gkcEI+IHAyu+3CQ3VY8 0SmMcYAEMTn1Uc5EspxOUDWlrz8jEmV8zMn5ClGfDAigpA+Lv1MbIxXPU5kaJYdCs/ls cbN5w2/9gtypqNYpRqYmb6PAk4KI227mzNz/ivpCbwcfWvCGHzkMAsqtY80X1jOsfkBF PMoQ== MIME-Version: 1.0 X-Received: by 10.107.128.219 with SMTP id k88mr3061008ioi.27.1424258495845; Wed, 18 Feb 2015 03:21:35 -0800 (PST) In-Reply-To: References: Date: Wed, 18 Feb 2015 22:21:35 +1100 Subject: Re: sqlite3 and dates From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 33 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1424258499 news.xs4all.nl 2900 [2001:888:2000:d::a6]:39682 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:85785 On Wed, Feb 18, 2015 at 10:11 PM, Johannes Bauer wrote: > On 18.02.2015 08:05, Chris Angelico wrote: > >> But if you need more facilities than SQLite3 can offer, maybe it's >> time to move up to a full database server, instead of local files. >> Switching to PostgreSQL will give you all those kinds of features, >> plus a lot of other things that I would have thought pretty basic - >> like ALTER TABLE. It was quite a surprise to learn that SQLite3 didn't >> support that. > > I see you're running a lawnmower. Maybe you should switch to a combine > harvester. That'll get you extra features like a reciprocating knife > cutter bar. I was quite surprised that regular lawnmowers don't support > those. SQLite3 is fine for something that's basically just a more structured version of a flat file. You assume that nobody but you has the file open, and you manipulate it just the same as if it were a big fat blob of JSON, but thanks to SQLite, you don't have to rewrite the whole file every time you make a small change. That's fine. But it's the wrong tool for any job involving multiple users over a network, and quite probably the wrong tool for a lot of other jobs too. It's the smallest-end piece of software that can truly be called a database. I would consider it to be the wrong database for serious accounting work, and that's based on the ranting of a majorly-annoyed accountant who had to deal with issues in professional systems that had made similar choices in back-end selection. You're welcome to disagree, but since PostgreSQL doesn't cost any money and (on Linux at least; can't speak for other platforms) doesn't take significant effort to set up, I will continue to recommend it. ChrisA