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 1kHuzp-0006hy-C0 for pgsql-general@arkaria.postgresql.org; Mon, 14 Sep 2020 20:22:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kHuzn-0005Xs-UF for pgsql-general@arkaria.postgresql.org; Mon, 14 Sep 2020 20:22:39 +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 1kHuzn-0005Wd-7t for pgsql-general@lists.postgresql.org; Mon, 14 Sep 2020 20:22:39 +0000 Received: from w1.tutanota.de ([81.3.6.162]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kHuzi-00019X-0x for pgsql-general@lists.postgresql.org; Mon, 14 Sep 2020 20:22:37 +0000 Received: from w3.tutanota.de (unknown [192.168.1.164]) by w1.tutanota.de (Postfix) with ESMTP id 3B610FA0315 for ; Mon, 14 Sep 2020 20:22:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1600114951; s=s1; d=tutanota.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Cc:Date:Date:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:Sender; bh=XkKgC08Eo589LpL6HTCCUyLPFOH9U4kRik7n2Widxv0=; b=Z4JYoBhJ11ZFd4O9nZlR104Xqd8e+YMddk/3v4Jge9Wc+obRCcSpFaCqk4TUSYh2 k0ZFtTpL6U9YFnwl5zB8TDr6s1uX6GMTd/mUo7CMYaRa8s8OFM/8r6hxR25GIOXT3OG 9dxPykTX+BIzVZcF4e/m7x+5i/pRqCD8sdITw9pjEgEmc/wQUXlk83IOdyJVU4T+iyW hgnIGU5lqiovy0C7fgFSy2YbHH8X/9Wleiwrft2l39GHbi9TBiDUl2pu8PYpaiJ9Qrc +rCuDxSolGzm/tP8kBB9p8USF6BKqg9pZAbjmnPh2oIfsrlpKHxZTMMUc8n/k1DsQlf WF3plk/5fw== Date: Mon, 14 Sep 2020 22:22:31 +0200 (CEST) From: tutiluren@tutanota.com To: pgsql-general@lists.postgresql.org Message-ID: Subject: Can I get some PostgreSQL developer feedback on these five general issues I have with PostgreSQL and its ecosystem? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1745_1658868941.1600114951223" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_1745_1658868941.1600114951223 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Even though I highly appreciate that PostgreSQL, a database software which = doesn't cost money, exists *at all*, that fact is oftentimes overshadowed b= y a small but important number of very frustrating issues which I consider = to largely ruin the overall "experience" of using PostgreSQL. I'd call them= "almost show-stopping". I realize very well that not everyone "has the sam= e priorities" (clearly not) or the expertise, will and free time to work on= a certain "area" of the overall project/ecosystem, but these issues/bugs/l= imitations are so problematic to me that I have to express them directly to= the PostgreSQL developers: 1. All non-ANSI characters are turned into "?"s for application_name. My ad= ministration panel is thus full of gibberish such as: "?a??? ???? ? ?m??? ?= ?i???u?" and it always looks as if something is awfully broken. I would not= dare to show it to a CEO or other important person, as they'd just go: "We= 're switching to IBM, effective immediately. Throw this open source rubbish= out at once!" The explanation I've heard for this is that it's basically a= security issue, as it's possible to set the application_name before the so= mething-something (safe Unicode handler code?) has kicked in, but I have no= problems with setting the application_name to Unicode characters *after* t= he database connection has already been fully established, in a separate qu= ery, as I already do, and I doubt that anyone else would have, either. So t= hat explanation, while probably technically true, doesn't seem to make any = sense. 2. pg_dump misinterprets non-ANSI values for the "--exclude-*" options (at = least the --exclude-table-data one, which is the one I've tested) on Window= s, resulting in it being impossible to make more "sophisticated" backups of= PostgreSQL databases; it's either all or nothing. Other programs, includin= g my own test scripts and commands, are perfectly able to use any Unicode c= haracter sent from/through both cmd.exe and PHP CLI, but not pg_dump, so th= e idea that "Windows it at fault" here just doesn't seem true. (Although I = don't doubt for a second that it often *is* the case... Microsoft is not a = nice entity in any way.) I spent a lot of time and efforts experimenting wi= th and asking about this, but eventually gave up and concluded that it was = yet another bug in an open source project "only" on Windows with no real/pr= essing interest in fixing it. For me, this means that I lose a ton of fresh= data every day, or have to make *gigantic* backups. (I have several huge "= temporary debug log" tables whose data have zero long-term value but tons o= f short-term value.) It makes me feel crippled and excluded in an uncomfort= able manner. 3. The ability to embed PG to run in an automatic, quiet manner as part of = something else. I know about SQLite, but it's extremely limited to the poin= t of being virtually useless IMO, which is why I cannot use that for anythi= ng nontrivial. I want my familiar PostgreSQL, only not require it to be man= ually and separately installed on the machine where it is to run as part of= some "application". If I could just "embed" it, this would allow me to cre= ate a single EXE which I can simply put on a different machine to run my en= tire "system" which otherwise takes *tons* of tedious, error-prone manual l= abor to install, set up and maintain. Of course, this is probably much easi= er said than done, but I don't understand why PG's architecture necessarily= dictates that PG must be a stand-alone, separate thing. Or rather, why som= e "glue" cannot enable it to be used just like SQLite from a *practical* pe= rspective, even if it still is a "server-client model" underneath the hood.= (Which doesn't matter at all to me, nor should it matter to anyone else.) 4. There is no built-in means to have PG manage (or even suggest) indexes o= n its own. Trying to figure out what indexes to create/delete/fine-tune, an= d determine all the extremely complex rules for this art (yes, I just calle= d index management an *art*, because it is!), is just utterly hopeless to m= e. It never gets any easier. Not even after many years. It's the by far wor= st part of databases to me (combined with point five). Having to use third-= party solutions ensures that it isn't done in practice, at least for me. I = don't trust, nor do I want to deal with, external software and extensions i= n my databases. I still have nightmares from PostGIS, which I only keep aro= und, angrily, out of absolute necessity. I fundamentally don't like third-p= arty add-ons to things, but want the core product to properly support thing= s. Besides, this (adding/managing indexes) is not even some niche/obscure u= se-case, but something which is crucial for basically any nontrivial databa= se of any kind! 5. Ever since my early days with PG in the mid-2000s, I've tried numerous t= imes to read the manual, wikis and comments for the configuration files, sp= ecifically the performance directives, and asked many, many times for help = about that, yet never been able to figure out what they want me to enter fo= r all the numerous options. At this point, it isn't me being lazy/stupid; i= t's objectively very difficult to understand all of that. The practical end= result of this is that I've always gone back to using the untouched defaul= t configuration file (except for the logging-related options), which, espec= ially in the past on FreeBSD, *severely* crippled my PG database to not eve= n come close to taking advantage of the full power of the hardware. Instead= , it felt like I was using maybe 1% of the machine's power, even with a pro= per database design and indexes and all of that stuff, simply because the d= efault config was so "conservative" and it couldn't be just set to "use wha= tever resources are available". I wish so much for PG to have a mode where = it self-tunes itself as needed, over time, based on the actual workload, or= at least allowed some kind of abstract "performance mode" such as: "you ar= e allowed to use significant system resources, PG", or: "You are one of my = most important applications. Just use as much power as you currently need, = but at least save about 10% for the rest of the system, will you?" Maybe th= is is also harder than it sounds to accomplish, but for somebody like me wh= o has zero funding, I cannot hire some professional to sit down with me and= fine-tune my system for $899/hour. Also, besides the purely monetary issue= , there are serious privacy implications with that scene. I wouldn't want a= n outsider to have intimate knowledge of my database system, which more tha= n probably is a requirement for them to be able to do their job properly. I'm sorry if any of the above sounds insulting/"entitled". These are the ma= in things which truly bother me about PG and the "PG ecosystem", and I'd lo= ve to hear some first-hand comments on them. At least point 1 and 2 seem li= ke they would be almost trivial to fix, at least compared to the rest. ------=_Part_1745_1658868941.1600114951223 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Even though I highly appreciate that PostgreSQL, a database software w= hich doesn't cost money, exists *at all*, that fact is oftentimes overshado= wed by a small but important number of very frustrating issues which I cons= ider to largely ruin the overall "experience" of using PostgreSQL. I'd call= them "almost show-stopping". I realize very well that not everyone "has th= e same priorities" (clearly not) or the expertise, will and free time to wo= rk on a certain "area" of the overall project/ecosystem, but these issues/b= ugs/limitations are so problematic to me that I have to express them direct= ly to the PostgreSQL developers:

1. All non-AN= SI characters are turned into "?"s for application_name. My administration = panel is thus full of gibberish such as: "?a??? ???? ? ?m??? ??i???u?" and = it always looks as if something is awfully broken. I would not dare to show= it to a CEO or other important person, as they'd just go: "We're switching= to IBM, effective immediately. Throw this open source rubbish out at once!= " The explanation I've heard for this is that it's basically a security iss= ue, as it's possible to set the application_name before the something-somet= hing (safe Unicode handler code?) has kicked in, but I have no problems wit= h setting the application_name to Unicode characters *after* the database c= onnection has already been fully established, in a separate query, as I alr= eady do, and I doubt that anyone else would have, either. So that explanati= on, while probably technically true, doesn't seem to make any sense.

2. pg_dump misinterprets non-ANSI values for the "--= exclude-*" options (at least the --exclude-table-data one, which is the one= I've tested) on Windows, resulting in it being impossible to make more "so= phisticated" backups of PostgreSQL databases; it's either all or nothing. O= ther programs, including my own test scripts and commands, are perfectly ab= le to use any Unicode character sent from/through both cmd.exe and PHP CLI,= but not pg_dump, so the idea that "Windows it at fault" here just doesn't = seem true. (Although I don't doubt for a second that it often *is* the case= ... Microsoft is not a nice entity in any way.) I spent a lot of time and e= fforts experimenting with and asking about this, but eventually gave up and= concluded that it was yet another bug in an open source project "only" on = Windows with no real/pressing interest in fixing it. For me, this means tha= t I lose a ton of fresh data every day, or have to make *gigantic* backups.= (I have several huge "temporary debug log" tables whose data have zero lon= g-term value but tons of short-term value.) It makes me feel crippled and e= xcluded in an uncomfortable manner.

3. The abi= lity to embed PG to run in an automatic, quiet manner as part of something = else. I know about SQLite, but it's extremely limited to the point of being= virtually useless IMO, which is why I cannot use that for anything nontriv= ial. I want my familiar PostgreSQL, only not require it to be manually and = separately installed on the machine where it is to run as part of some "app= lication". If I could just "embed" it, this would allow me to create a sing= le EXE which I can simply put on a different machine to run my entire "syst= em" which otherwise takes *tons* of tedious, error-prone manual labor to in= stall, set up and maintain. Of course, this is probably much easier said th= an done, but I don't understand why PG's architecture necessarily dictates = that PG must be a stand-alone, separate thing. Or rather, why some "glue" c= annot enable it to be used just like SQLite from a *practical* perspective,= even if it still is a "server-client model" underneath the hood. (Which do= esn't matter at all to me, nor should it matter to anyone else.)
<= div>
4. There is no built-in means to have PG manage (or even= suggest) indexes on its own. Trying to figure out what indexes to create/d= elete/fine-tune, and determine all the extremely complex rules for this art= (yes, I just called index management an *art*, because it is!), is just ut= terly hopeless to me. It never gets any easier. Not even after many years. = It's the by far worst part of databases to me (combined with point five). H= aving to use third-party solutions ensures that it isn't done in practice, = at least for me. I don't trust, nor do I want to deal with, external softwa= re and extensions in my databases. I still have nightmares from PostGIS, wh= ich I only keep around, angrily, out of absolute necessity. I fundamentally= don't like third-party add-ons to things, but want the core product to pro= perly support things. Besides, this (adding/managing indexes) is not even s= ome niche/obscure use-case, but something which is crucial for basically an= y nontrivial database of any kind!

5. Ever sin= ce my early days with PG in the mid-2000s, I've tried numerous times to rea= d the manual, wikis and comments for the configuration files, specifically = the performance directives, and asked many, many times for help about that,= yet never been able to figure out what they want me to enter for all the n= umerous options. At this point, it isn't me being lazy/stupid; it's objecti= vely very difficult to understand all of that. The practical end result of = this is that I've always gone back to using the untouched default configura= tion file (except for the logging-related options), which, especially in th= e past on FreeBSD, *severely* crippled my PG database to not even come clos= e to taking advantage of the full power of the hardware. Instead, it felt l= ike I was using maybe 1% of the machine's power, even with a proper databas= e design and indexes and all of that stuff, simply because the default conf= ig was so "conservative" and it couldn't be just set to "use whatever resou= rces are available". I wish so much for PG to have a mode where it self-tun= es itself as needed, over time, based on the actual workload, or at least a= llowed some kind of abstract "performance mode" such as: "you are allowed t= o use significant system resources, PG", or: "You are one of my most import= ant applications. Just use as much power as you currently need, but at leas= t save about 10% for the rest of the system, will you?" Maybe this is also = harder than it sounds to accomplish, but for somebody like me who has zero = funding, I cannot hire some professional to sit down with me and fine-tune = my system for $899/hour. Also, besides the purely monetary issue, there are= serious privacy implications with that scene. I wouldn't want an outsider = to have intimate knowledge of my database system, which more than probably = is a requirement for them to be able to do their job properly.

I'm sorry if any of the above sounds insulting/"entitled".= These are the main things which truly bother me about PG and the "PG ecosy= stem", and I'd love to hear some first-hand comments on them. At least poin= t 1 and 2 seem like they would be almost trivial to fix, at least compared = to the rest.
------=_Part_1745_1658868941.1600114951223--