Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hwsu5-0005OQ-SQ for pgsql-general@arkaria.postgresql.org; Sun, 11 Aug 2019 18:49:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hwsu2-0001Jx-BA for pgsql-general@arkaria.postgresql.org; Sun, 11 Aug 2019 18:49:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hwsu2-0001Jq-1S for pgsql-general@lists.postgresql.org; Sun, 11 Aug 2019 18:49:14 +0000 Received: from mail.hjp.at ([212.17.106.138] helo=rorschach.hjp.at) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hwsty-0000Mq-8Y for pgsql-general@lists.postgresql.org; Sun, 11 Aug 2019 18:49:13 +0000 Received: by rorschach.hjp.at (Postfix, from userid 1000) id 9F9F92FDA; Sun, 11 Aug 2019 20:49:07 +0200 (CEST) Date: Sun, 11 Aug 2019 20:49:07 +0200 From: "Peter J. Holzer" To: pgsql-general@lists.postgresql.org Subject: Re: Recomended front ends? Message-ID: <20190811184907.GC18277@hjp.at> References: <20190807185708.GA19765@panix.com> <2e05945f-eaa9-2034-97b2-605e7fdb6746@mtneva.com> <3cc9f7ab-2bb8-22c4-5995-63ebcb547240@aklaver.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="f0KYrhQ4vYSV2aJu" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --f0KYrhQ4vYSV2aJu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2019-08-08 10:47:47 -0700, Rich Shepard wrote: > On Thu, 8 Aug 2019, Adrian Klaver wrote: > > Unfortunately it does not: > > https://code.djangoproject.com/wiki/MultipleColumnPrimaryKeys > >=20 > > Given that the issue: > > https://code.djangoproject.com/ticket/373 > > is 14 years old does not inspire confidence that it will change anytime= soon. >=20 > Adrian, >=20 > That's really interesting. I don't see how a framework cannot implement > multi-column PKs. You are a database guy. You have a database and want to write an application for it. Even in a greenfield project, you probably do the database design first. (I know I do) The Django framwork comes from the opposite direction. The programmers aren't expected to know much about relational databases[1]. They are expected to write their application and Django provides (among other things like session and form handling) a persitence layer which happens to be backed by a relational database. So Django's ORM layer isn't intended to deal with any possible (or even any reasonable) database model - just with database models generated by Django.=20 Django lets you use "unmanaged" tables, but it is quite noticeable that this isn't the primary use case. > Many databases I have include tables for samples (geochemical, biological, > physical) where the PK for each row is location, date, parameter. Good th= ing > I don't like browser user interfaces, eh? :-) Django isn't the only web framework. hp [1] It should be noted, however, that the Django ORM is what Joel Spolsky calls a leaky abstraction. If you are ignorant about how RDBMSs work, your application will probably be horrendously slow. Even if you do know this, you often have to bend over backwards to get reasonable performance. --=20 _ | Peter J. Holzer | we build much bigger, better disasters now |_|_) | | because we have much more sophisticated | | | hjp@hjp.at | management tools. __/ | http://www.hjp.at/ | -- Ross Anderson --f0KYrhQ4vYSV2aJu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAl1QYx4ACgkQ8g5IURL+ KF1hWA//eqh4yJnZKE80VAu/cQkHnp+wVl8bxhh0tP02coWygBBUWbV5oWJNoalm SsrNIqlwu+wauS+1fw/vr9aN3092rmuK9hYtPeEJYGJqPeFETMEsDghJemM0fmw+ +jHEhzj0kQXHggfVu/he9MI+cTLFQV81/SNHXn6f/wzxm2MpLTKGl2lDsJbj1JlD G8ytrPxefurkr63vyjDGsoCF4hLnyvXRgBa8xiA9rJTvZcb+2ozfJ1G+qtg2BqGz ry/K4IhMSbVcmB1jwKa48I2ns7NMo6ouv2Jonhyoq3xwLNbr0AFKamZBAhFgHiLB o1ec/JRAA9zppXRuRWA4PDysXIPWer1F+ERtbE2pQ4svCJ6uWLBe2/LzmsLfJdNT BRPY196hwLxu4UpiF0G+JrnToIzC39Uylh6rYxn8MHdvUCJYg7Fb2WwnDpW7I+wH koHz1CfnOmFERDJAy8lAt+Fx3nj3Nc55yP7AHdajmc+AkEb97K2SgNgjvbBPvgGh mE+FNttX4RQ+2J9xCGy+qm/ARq3AkfKzKXQq0icHGTSfKbPCeDtsqA7JO6byC8yY wJh4GHD/LhyRdyKMEJC1mAaXS1iUjoBfZvaq7wpcvfJNaQU3PC0SXgsdXHahrc6o 2v4bb5FkF9S3oFHxGfikAKL7uCquC7eRqt7CNXh3kQDhkQ58T4w= =VeLq -----END PGP SIGNATURE----- --f0KYrhQ4vYSV2aJu--