Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kLBX5-0005NR-MB for pgsql-general@arkaria.postgresql.org; Wed, 23 Sep 2020 20:38:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kLBX2-0002PH-Sx for pgsql-general@arkaria.postgresql.org; Wed, 23 Sep 2020 20:38:28 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kLBX0-0002LZ-Se for pgsql-general@lists.postgresql.org; Wed, 23 Sep 2020 20:38:28 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kLBWx-0003gS-5f for pgsql-general@lists.postgresql.org; Wed, 23 Sep 2020 20:38:25 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 33DCDD16; Wed, 23 Sep 2020 16:38:21 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 23 Sep 2020 16:38:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=v xgmsi+EfIgDv42mJiMO3Fw/yqbh585P5yN0bwvAZxw=; b=L0pFdjOWM6F5M/64I 3qugYvTgbf6TxocZz8gZghDm4pkHYq60TRot7UETCwrfFzArQ2jZZMh7sTBAo7HF 8gEabx1fLAgrl4XFzwVBghMSxm0yuHFtumocG1RyR47c2iZUxqFHMa9GEGhyxn9A uIfz1ZmaZWQJtUJVQNe+IxWE0/DJdAW3WfT/z6uwmE+3bXzr1d8XJS+gnjm+trDM JVaJiF5j7JidxqEqPIZnQpZZ30f+xiMkzmTXBIofw1Nrek8IAKPfDKi3XVdgpH1z ldc9kwtQJ/vvrmfQDHSKrPxC4zNv3sZP333oEFLsu2kF5OWVTHXquFORVwfZK9ig GqT1g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=vxgmsi+EfIgDv42mJiMO3Fw/yqbh585P5yN0bwvAZ xw=; b=L4F3lsJoZam4Dq5MbAqEAimZRl9457UlmPgmVgEyQRwMKRYStz40E7n1P iwBMCX9aFA5ihJ/UlQ4TBfzrG1+4UMaPRYjrlbR6Mo2tECHkpkVjzgs7LMz6qChz 9iUhIawuo/6xRDEv1Z5nEJ9+H7Vkh8glX/BDWCNS6WOt3avXEex7J1+/JtpmuMIC mMSuBsaGqDBQDchaRhgotdGrx0vNJ6O0yfald6UJWbaf2nQMQXSSoOoR1WpLanY1 IAZUdsEDkxnIRm0sEdSwoltspaq9f/c8G70itZUxiYwRIEbD9G5PFm1E8LMkK4vV kq9b8UjSdG84UXhd5WukmQwKisQqQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudeigdduheefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthejredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeevteejtdeikeetfefhhffhteelvdekffevudegjeeu kefhgfdvieeliedtkeevhfenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgne cukfhppeejhedrudejvddrhedrvdefudenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrd gtohhm X-ME-Proxy: Received: from [192.168.1.3] (75-172-5-231.tukw.qwest.net [75.172.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id 05764306467D; Wed, 23 Sep 2020 16:38:19 -0400 (EDT) Subject: Re: Can I get some PostgreSQL developer feedback on these five general issues I have with PostgreSQL and its ecosystem? To: tutiluren@tutanota.com, Pgsql General References: <22fd4d2d-e7da-f30c-62fa-d317b160abd3@aklaver.com-MHs-Dk2----2> From: Adrian Klaver Message-ID: <04e11ce6-9589-59a9-d31b-e4a1df753936@aklaver.com> Date: Wed, 23 Sep 2020 13:38:19 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 9/23/20 11:51 AM, tutiluren@tutanota.com wrote: > It is not deprecated or legacy and it is still used by many. The > issue is that people try to do 'partial' dumps without reading the > docs on what those switches actually do and the potential conflicts > therein. For large installations there it is often better to use > some form of replication(binary and/or logical) to maintain a > continuous backup. pg_dump can take a long time on very big > databases, so it may not keep up. > > Well, I've never done partial backups, frankly because I don't trust it > to actually work. Full backups may be more wasteful with disk space, but > at least "makes sense" in some abstract way. (Also, I try to keep as > little data as possible, so they are never *gigantic*.) Well not partial as in incremental. Instead dump only some portion of the schema with or without its associated data. > This comes down to what your definition of embedded is? A matter of > determining whether we are talking apples or oranges. > > Just what I said in my original question. Something which is bundled and > invisible to the user. That is going to be difficult with Postgres as it is its own process. It would take a good bit of tooling to hide that from the user. > Huh? A schema is just a name space, why does it matter how the > extension chooses to define it? I mean you could have number of > permutations of postgis. > > I'm saying that PostGIS has a bug due to incorrectly constructed > internal queries which makes it impossible to properly name the schema > where PostGIS is to reside, causing my database to look very ugly when > it has to say "postgis" instead of "PostGIS" for PostGIS's schema. And > that was an example of how sloppy/bad third-party things always are, and > is one reason why I don't like it when I have to rely on "extensions". If that is the sum of your issues with PostGIS then I really don't have much sympathy. They are extensions so you aren't required to use them and rely on their way of doing things. You have the choice of writing your own code/extension or do without completely. I personally find compromise on my part wrt to extensions greatly reduces the amount of coding/effort I have to do to move forward. Honestly, I don't see how it is different from the compromises that arise out of using the core project itself. > That would entail building an AI into the code that would deal with > all the possible OS(versions), Postgres(versions), hardware > permutations. > > I... guess. If "AI" means "a series of ifs". Which is what software... > is? I doubt that people who can make the world's most advanced open > source database cannot check the amount of RAM and see how fast the > CPU/disk is. It is more then that. It would have to take into account the behavior changes that happen in Postgres between major versions. It also would have to account for OS specific parameters and the changes that happen there between OS versions. It also would need to 'know' how the database was going to be used; readonly, heavy writes, etc. Also how the database should play with other programs on the same machine. Add to the mix containers, cloud instances and so on and you are outrunning the ability of 'ifs' to handle it. > > Does your server runs to your satisfaction with the default settings? > > Right now, yes, but that says very little as I'm the only user of it. > I've had many nightmares in the past, however, where even determining > whether the changes in the config did anything (good or bad) has been > impossible. I fundamentally don't like the idea that the config is so > "conservative" (crippled) with no obvious/easy way to "set a different > general mode". If you honestly think that the numerous > performance-related options are easy to understand, I don't know what to > say. The thing is 'general mode' is going to mean something different to someone running a database in the MB-low GB range vs. high GB vs. TB vs. PB. As to monitoring see: https://www.postgresql.org/docs/12/monitoring-stats.html https://www.postgresql.org/docs/12/runtime-config-logging.html#RUNTIME-CONFIG-LOGGING-WHAT I know it is an extension, still it is useful: https://www.postgresql.org/docs/12/pgstatstatements.html -- Adrian Klaver adrian.klaver@aklaver.com