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 1iIZXB-0006zG-Gi for pgsql-general@arkaria.postgresql.org; Thu, 10 Oct 2019 14:35:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iIZX8-0006MS-TK for pgsql-general@arkaria.postgresql.org; Thu, 10 Oct 2019 14:35: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 1iIZX8-0006ME-I1 for pgsql-general@lists.postgresql.org; Thu, 10 Oct 2019 14:35:14 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iIZX1-0000yD-6i for pgsql-general@lists.postgresql.org; Thu, 10 Oct 2019 14:35:13 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 0014E5F79F; Thu, 10 Oct 2019 10:35:04 -0400 (EDT) Date: Thu, 10 Oct 2019 10:35:04 -0400 From: Stephen Frost To: =?iso-8859-1?Q?P=F3l_Ua_Lao=EDnech=E1in?= Cc: pgsql-general@lists.postgresql.org Subject: Re: Is my lecturer wrong about PostgreSQL? I think he is! Message-ID: <20191010143504.GC6962@tamriel.snowman.net> References: <23634.1570632156@sss.pgh.pa.us> <20191009194249.GB6962@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="OgcRfntPYWSxV9WE" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --OgcRfntPYWSxV9WE Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * P=F3l Ua Lao=EDnech=E1in (linehanp@tcd.ie) wrote: > > > 1) Is my lecturer full of it or does he really have a point? >=20 > > He's full of it, as far as I can tell anyway, based on what you've > > shared with us. Just look at the committers and the commit history to > > PostgreSQL, and look at who the largest contributors are and who they > > work for. That alone might be enough to surprise your lecturer with. >=20 > The only non-PostgreSQL company that I could find was Fujitisu - where > can I find a (list of) the others? Not sure where you were looking... The contributors list is here: https://www.postgresql.org/community/contributors/ The committers list is here: https://wiki.postgresql.org/wiki/Committers The git tree is here: https://git.postgresql.org/gitweb/?p=3Dpostgresql.git;a=3Dsummary Perhaps not the best stat, but you can view the contributions by committer pretty easily, for 2018, here: https://github.com/postgres/postgres/graphs/contributors?from=3D2018-01-01&= to=3D2018-12-31&type=3Dc Note that this isn't very representative of the actual authors though- we don't track those in the way git would prefer, instead we note who the author of a given patch was in the commit message itself. > > Databases that do direct I/O don't depend on fsync. That said, I do > > think this could have been an issue for Oracle if you ran it without > > direct i/o. >=20 > I think that Oracle are big into asyncio? I know that you have to sudo > dnf install some_library with a name like asio/asyncio or something > like that? Oracle supports both, but running with direct i/o is pretty popular, yes. > Anyway, why doesn't PostgreSQL use Direct I/O? There's an awful lot that the kernel provides when it comes to things like good read-ahead and dealing with disks and SSDs and such that we (currently, at least) prefer to leverage instead of writing lots of new code to deal with that ourselves, which would be required to use Direct I/O (and not have it be completely terrible performance wise, anyway). The whole issue behind fsync was because our expectation (and POSIX's, if you ask me anyway) was different from what the Linux kernel was providing (specifically, you could end up in a situation where an fsync() call "worked" and didn't return an error, even though there remained pages that were dirty and not written out). Now, this is under other error conditions typically and you'll get messages in the kernel log about such failures usually, so if you're properly monitoring and managing your systems there's a good chance you would have realized there was a problem even though the Linux kernel was telling PG that everything was fine (have backups!!). Thanks, Stephen --OgcRfntPYWSxV9WE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJdn0GYAAoJEO1sijiDR2RV4M0P/1pZg54GYok+wrzc0faqSg2o m/+8cfR8Ts5NuucEFLC3ibC89hUbRSbGMgSCltRGfgYrkQHKck5ktKLLvbj8IrLk EtDfuth3CQ1nJ298Xzvtu+ILGJmwxOb3aJS0ou1vkLSsiNpIzeGpuTPPqoKpigif 3gZr7yejOjw1ESm3TrKl9IGpFVykd3iHjorCiqUextLzmRDQpJU6/xOyiwRcQwSQ raS5dtOEeh/yxNBD7If4WK6odkgP5RqngEWv6BfpvmT52zCqFpwVVBWsAvAOa41q ARoD8SgDLXDq6y7HJQoO3kHN9iRkzgJuCsvQJwEpn73SPhijoWh0yyKl6tkyOVw+ EiiRN1EIAXq1726BwiQzLHk2KhfaeXDSrvPMr5YjZFQRYQrTptm5ZdmmknAC4uDJ uwxEjLJG+aL7fmppxoIT0S1ESPvuxalAkGNdrLjH2YO/bd8DqdiKaTa++kUAYtpd LHu5Az5hPLFOvXfwTQ04Ba6yjr1yaPMfIibLP5iUIB8hAGEkwEum408SEAtuF0ak jG6zI2sElK6cZdmJJqpZuubi3OgGzAJjZvjbe1Q8RdFEEd2wSVHd9BnLBrk6vEnj 7EGyISZFuk58AhzX4duSLuajR/g1nVgO4szdOo0a/iwSNrG8HYmdWhqoMc1Z2GwT 39kyqB8O88ATwgrgXIiT =nBb6 -----END PGP SIGNATURE----- --OgcRfntPYWSxV9WE--