Re: How to reply to an existing bug?

2018-05-28 Thread Magnus Hagander
On Mon, May 28, 2018, 02:00 Erwin Brandstetter wrote: > I found an existing bug report and have something to add to it. > > What's the best way to reply to it? Just using a browser, with no > newsreader installed. > > This one: > > https://www.postgresql.org/message-id/flat/20170925084522.1442.32

Re: Code of Conduct plan

2018-06-05 Thread Magnus Hagander
ave decent coverage of other cultures and countries as well. We can't cover them all on the committee (that would make for a gicantic committee), but we can cover it with people who are used to communicating and working with people from other areas as well, which makes for a better understanding. It won't be perfect in the first attempt, of course, but that one is covered. -- Magnus Hagander Me: https://www.hagander.net/ <http://www.hagander.net/> Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>

Re: Single query uses all system memory

2018-06-26 Thread Magnus Hagander
On Tue, Jun 26, 2018 at 11:40 AM, Ivar Fredriksen wrote: > A single large query is able to spend all the system memory (as reported > by top), and the oom_reaper kills postgres. See bottom of email for an > example query and logs. > > > > Expected behavior would be that postgres is not killed and

Re: Code of Conduct committee: call for volunteers

2018-06-29 Thread Magnus Hagander
something like this again, you will be banned immediately and permanently from the lists. -- Magnus Hagander PostgreSQL Core Team

Re: correcting tablespaces inside data folder

2018-07-06 Thread Magnus Hagander
t to the new location, and start it up again. -- Magnus Hagander Me: https://www.hagander.net/ <http://www.hagander.net/> Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>

Re: correcting tablespaces inside data folder

2018-07-06 Thread Magnus Hagander
Jul 6, 2018 at 5:49 PM Magnus Hagander > wrote: > >> On Fri, Jul 6, 2018 at 6:42 PM, Duarte Carreira >> wrote: >> >>> Hello. >>> >>> Yes I'm one of those guys who only recently realized the mess of having >>> tablespaces inside t

Re: PG backup check

2018-07-17 Thread Magnus Hagander
ol from others, but it's not exactly news... But they do outline a very definite problem, which is that if you get physical corruption in your database, it gets included in the backups. And if it's in a portion of the database you don't use a lot, checksum failures won'

Re: User documentation vs Official Docs

2018-07-17 Thread Magnus Hagander
that the project could *start out* using the wiki, and once there is enough content to prove the idea other platforms could be looked at and it would be easy enough to migrate that data out there (even if just by copy/paste) if it becomes a need. -- Magnus Hagander Me: https://www.hagander.net/ <http://www.hagander.net/> Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>

Re: pg_basebackup exit codes

2019-08-19 Thread Magnus Hagander
up version: (PostgreSQL) 10.10 > > > > Anybody else encountering this problem? > > > I think your problem is that you are looking at the exit code from "tee" and not from pg_basebackup. If you are using bash, you can look at something like $PIPESTATUS to get the exit

Re: Security patch older releases

2019-08-29 Thread Magnus Hagander
u want to get an individual security patch you will have to cherry pick it from git and build your own server from source. But per the above link, it is really recommended that you don't do that. Instead, do it the way it's intended to, which means install the latest minor release. Why

Re: SSPI auth and mixed case usernames

2019-08-30 Thread Magnus Hagander
n still has to actually try to log in with lowercase, and do so before it connects to PostgreSQL. -- Magnus Hagander Me: https://www.hagander.net/ <http://www.hagander.net/> Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>

Re: SSPI auth and mixed case usernames

2019-08-30 Thread Magnus Hagander
On Fri, Aug 30, 2019 at 3:00 PM Niels Jespersen wrote: > Hello Magnus > > Thank you for your prompt reply. > > I’m not sure I understand your last statement. I want to achieve that > regardless of the case of the entered username is logged into the same > Postgres user (whose name is created in a

Re: PG12

2019-10-03 Thread Magnus Hagander
on. So we obviously have to wait for EDB to provide updated lists there -- but until then, you can probably expect it to work just fine. -- Magnus Hagander Me: https://www.hagander.net/ <http://www.hagander.net/> Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>

Re: Version 10.7 of postgres

2019-10-10 Thread Magnus Hagander
, but if not you should be complaining to that vendor that they are missing important fixes, rather than try to install a version with known bugs and security issues. -- Magnus Hagander Me: https://www.hagander.net/ <http://www.hagander.net/> Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>

Re: Help with authentication on Debain/Ubuntu installation

2019-11-21 Thread Magnus Hagander
On Thu, Nov 21, 2019 at 1:46 PM stan wrote: > I am trying to set up to do some work with pg_dump, and I would like to be > able to connect from my normal user to do this. This is on a Ubunt 18.04 > installation. I have added the follwing to pg_hba.conf: > > hostall all

Re: archiving question

2019-12-06 Thread Magnus Hagander
On Fri, Dec 6, 2019 at 10:50 AM Zwettler Markus (OIZ) < markus.zwett...@zuerich.ch> wrote: > > -Ursprüngliche Nachricht- > > Von: Michael Paquier > > Gesendet: Freitag, 6. Dezember 2019 02:43 > > An: Zwettler Markus (OIZ) > > Cc: Stephen Frost ; > pgsql-general@lists.postgresql.org > > B

Re: archiving question

2019-12-06 Thread Magnus Hagander
ase the archiving only has to wait for it to acknowledge the process has started, not finished. There's always a risk involved in returning from archive_command before the file is safely stored on a different machine/storage somewhere. The more async you make it the bigger that risk is, but it increases your ability to parallelize. -- Magnus Hagander Me: https://www.hagander.net/ <http://www.hagander.net/> Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>

Re: Inexplicable duplicate rows with unique constraint

2020-01-16 Thread Magnus Hagander
e not in-order according > to the new behavior of the text comparison operators, leading to havoc > because btree searching relies on the entries being correctly sorted. See https://wiki.postgresql.org/wiki/Locale_data_changes for hints on which linux distros updated when. -- Magnus Hagander Me: https://www.hagander.net/ Work: https://www.redpill-linpro.com/

Re: Memory usage of pg_basebackup...

2020-01-22 Thread Magnus Hagander
isk immediately. If you are doing compression it uses a little more, but still within the "you don't really need to care" range. The RAM usage is not dependent on the size of the database, it is always that small. -- Magnus Hagander Me: https://www.hagander.net/ Work: https://www.redpill-linpro.com/

Re: Using of --data-checksums

2020-04-12 Thread Magnus Hagander
accumulated sizable data in your cluster. (Turning it on in this case is easy, but not fast). And FWIW, I do think we should change the default. And maybe spend some extra effort on the message coming out of pg_upgrade in this case to make it clear to people what their options are and exactly wh

Re: timestamp and timestamptz

2020-04-15 Thread Magnus Hagander
directly return utc. SELECT read_time AT TIME ZONE 'utc' will return the time in UTC (as a timestamp) And just make sure you have done a "set time zone 'utc'" before you *load* the data, and everything should just work automatically. -- Magnus Hagander Me: https://www.hagander.net/ <http://www.hagander.net/> Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>

Re: timestamp and timestamptz

2020-04-16 Thread Magnus Hagander
On Thu, Apr 16, 2020 at 6:12 AM Niels Jespersen wrote: > > > > > *Fra:* Magnus Hagander > *Sendt:* 15. april 2020 20:05 > *Til:* Niels Jespersen > *Cc:* pgsql-general@lists.postgresql.org > *Emne:* Re: timestamp and timestamptz > > > > > > > &

Re: Using of --data-checksums

2020-04-16 Thread Magnus Hagander
On Sun, Apr 12, 2020 at 4:23 PM Tom Lane wrote: > Magnus Hagander writes: > > And FWIW, I do think we should change the default. And maybe spend some > > extra effort on the message coming out of pg_upgrade in this case to make > > it clear to people what their options ar

Re: Binary downloads and upgrading the host OS

2020-04-25 Thread Magnus Hagander
ackup of some sort just before shutting down the server. > > Yes indeed! > Also don't forget that on an upgrade from Debian 9 to 10, you most likely need to reindex your string indexes, see https://wiki.postgresql.org/wiki/Locale_data_changes <https://wiki.postgresql.org/wiki

Re: PostgreSQL Server version compatibility check with Window 2016

2020-04-27 Thread Magnus Hagander
Hello! This address is for reporting issues with the PostgreSQL website, it is not a help desk. For general support questions, please see https://www.postgresql.org/support/ - in particular, consider the pgsql-general public mailinglist, as you seem to have already done, and received a reply there

Re: Lock Postgres account after X number of failed logins?

2020-05-06 Thread Magnus Hagander
tgreSQL these days, one should be using scram-sha-256 which does not have this problem (and has been around for a few years by now)., if using local database logins. -- Magnus Hagander Me: https://www.hagander.net/ <http://www.hagander.net/> Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>

Re: Best way to use trigger to email a report ?

2020-05-08 Thread Magnus Hagander
PQnotifies() once that call has indicated "something happened". Similar applies to writing such daemons using for example the python or perl interfaces. You block your process or thread on select() and take action when that one returns. -- Magnus Hagander Me: https://www.hagand

Re: Clarification related to BDR

2020-05-14 Thread Magnus Hagander
On Thu, May 14, 2020 at 9:01 AM Santhosh Kumar wrote: > Hi, > I came across a link published in postgresql, where it is clearly > mentioned BDR as an open source. When I tried to install BDR for CentOS > from 2ndQuadrant, the yum repository was not reachable and upon further > enquiring with 2nd

Re: How to start slave after pg_basebackup. Why min_wal_size and wal_keep_segments are duplicated

2020-06-01 Thread Magnus Hagander
lot 2. pg_basebackup with slot 3. start replication with slot 4. restart replication without slot once it's caught up 5. drop slot However, if you want reliable replication, you really should have a slot. Or at least, you should have either a slot *or* log archiving that's read-accessible from the replica. -- Magnus Hagander Me: https://www.hagander.net/ <http://www.hagander.net/> Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>

Re: PostgreSQL 11 with SSL on Linux

2020-06-04 Thread Magnus Hagander
gt; All the PostgreSQL versions available om yum from the postgresql.org site have SSL enabled. Just install using the instructions from https://www.postgresql.org/download/. -- Magnus Hagander Me: https://www.hagander.net/ <http://www.hagander.net/> Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>

Re: Something else about Redo Logs disappearing

2020-06-10 Thread Magnus Hagander
s change in its development, but it does > ! provide page-level, > > Ah, well, anyway that seems to be something significantly smaller > than the usual 1 gig table file at once. > pg_probackup does page level incremental *if* you install a postgres extension that some people hav

Re: Something else about Redo Logs disappearing

2020-06-11 Thread Magnus Hagander
ntly I know so much: > - it writes a backup_label file. That is just a few lines of >ASCII and should not be difficult to produce. > It does that only in exclusive mode, and doing that is one of the big problems with exclusive mode. So don't do that. > I now hope ver

Re: Something else about Redo Logs disappearing

2020-06-14 Thread Magnus Hagander
On Sat, Jun 13, 2020 at 10:13 PM Peter wrote: > On Thu, Jun 11, 2020 at 10:35:13PM +0200, Magnus Hagander wrote: > ! > Okay. So lets behave like professional people and figure how that > ! > can be achieved: > ! > At first, we drop that WAL requirement, because with WAL

Re: Netapp SnapCenter

2020-06-18 Thread Magnus Hagander
eral definitely needs improvement, this particular requirement is documented at https://www.postgresql.org/docs/current/backup-file.html. -- Magnus Hagander Me: https://www.hagander.net/ <http://www.hagander.net/> Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>

Re: Netapp SnapCenter

2020-06-21 Thread Magnus Hagander
> concurrent backup capabilities should yield any benefit at all. > One not uncommon case is for example being able to provision a new replica while a backup is running. Since replicas are provisioned starting off a base backup, being able to run that concurrently is very useful. Especia

Re: Netapp SnapCenter

2020-06-22 Thread Magnus Hagander
e the > database was running in backup mode during which the crash occurred. How > does that work if no pg_stop_backup() output exists? Did I miss something > here? > It does not work off *that* base backup. But if you start from the *prior* be backup (one that did complete wit

Re: autovacuum failing on pg_largeobject and disk usage of the pg_largeobject growing unchecked

2020-06-22 Thread Magnus Hagander
e actual autovacuum details -- can you include those? That is, you are only including the very last row of the log message, but the interesting parts are at the beginning. I assume you've also looked for other autovacuum messages in the log -- such as it being canceled by concurrent activity? -- Magnus Hagander Me: https://www.hagander.net/ <http://www.hagander.net/> Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>

Re: Error in Table Creation

2020-06-25 Thread Magnus Hagander
ERS). You are trying to create columns with names that are way longer than that, so they will be truncated. If you create this table in psql it will show you a NOTICE information about this -- I believe in psycopg2 this shows up in conn.noticies (where conn is the connection object

Re: EXTERNAL: Re: Netapp SnapCenter

2020-06-26 Thread Magnus Hagander
sistency group will set up a write fence across them, then snapshot, and AIUI guarantees correct write ordering. -- Magnus Hagander Me: https://www.hagander.net/ <http://www.hagander.net/> Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>

Re: PostgreSQL database segsize

2020-06-29 Thread Magnus Hagander
; Or even if you come into a place to support an existing PostgreSQL > database, how do you find out what the database segsize is? > > You can run the query "SHOW segment_size" to show the compiled-in value. -- Magnus Hagander Me: https://www.hagander.net/ <http://www.hagander.

Re: Different results from identical matviews

2020-07-02 Thread Magnus Hagander
mmands can alter the data. To make sure that's not what's happening, you may want to try doing the same thing with a BEGIN TRANSACTION ISOLATION LEVEL SERIALIZABLE instead, and see if the problem still occurs. -- Magnus Hagander Me: https://www.hagander.net/ <http://www.hagander.net/> Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>

Re: Security Vulnerability on PostgreSQL VMs

2020-07-17 Thread Magnus Hagander
is probably why the package version has a name ending in "sat". So it would be something a Linux admin would put in there, not the DBA. But to answer the question, no they are not required by PostgreSQL, repmgr or pgbouncer. -- Magnus Hagander Me: https://www.hagander.net/ <http://www.hagander.net/> Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>

Re: > ERROR: syntax error at or near "BYTE"

2020-08-21 Thread Magnus Hagander
, varchar just takes a number, not the special construct with BYTE. PostgreSQL varchar:s always limit the size based on number of characters, not bytes. -- Magnus Hagander Me: https://www.hagander.net/ <http://www.hagander.net/> Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>

Re: Fix typo in Comments of HandleProcSignalBarrierInterrupt

2020-09-06 Thread Magnus Hagander
On Thu, Sep 3, 2020 at 12:43 PM Hou, Zhijie wrote: > Hi all > > In master branch, I found a typo in Comments of function > HandleProcSignalBarrierInterrupt. > See the attachment for the patch. > > Thanks, pushed. //Magnus

Re: Autovacuum of independent tables

2020-09-08 Thread Magnus Hagander
(Please don't drop the mailinglist from CC, as others are likely interested in the responses) On Tue, Sep 8, 2020 at 3:06 PM Michael Holzman wrote: > > > On Tue, Sep 8, 2020 at 3:03 PM Magnus Hagander wrote: > >> A PostgreSQL SELECT does *not* open a transaction past the

Re: Autovacuum of independent tables

2020-09-08 Thread Magnus Hagander
On Tue, Sep 8, 2020 at 4:01 PM Michael Holzman wrote: > > > On Tue, Sep 8, 2020 at 4:25 PM Magnus Hagander wrote: > >> >> >> Whether you have autocommit on or off, you can *always* control things >> explicitly. And you can certainly run "multi-statemen

Re: Autovacuum of independent tables

2020-09-08 Thread Magnus Hagander
On Tue, Sep 8, 2020 at 4:38 PM Tom Lane wrote: > Magnus Hagander writes: > > Oh sure, but there is clearly *something* going on, so we should try to > > figure that out. Because a transaction running multiple independent > selects > > with the defaults settings

Re: Autovacuum of independent tables

2020-09-08 Thread Magnus Hagander
On Tue, Sep 8, 2020 at 5:16 PM Tom Lane wrote: > Magnus Hagander writes: > > On Tue, Sep 8, 2020 at 4:38 PM Tom Lane wrote: > >> The reason that's not so is that whether or not transaction A *has* > >> touched table B is irrelevant. It *could* read tab

Re: Reg:CHARSET_COVERSION_LATIN_TO_UTF8

2020-09-14 Thread Magnus Hagander
and all should be taken care of. -- Magnus Hagander Me: https://www.hagander.net/ <http://www.hagander.net/> Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>

Re: multiple tables got corrupted

2020-09-15 Thread Magnus Hagander
ve caused corruption elsewhere as well, so whatever verification you can do against other tables, you should do as well. You'll of course also want to check any kernel logs or storage system logs to see if they can give you a hint as to what happened, but they are unlikely to ac

Re: multiple tables got corrupted

2020-09-15 Thread Magnus Hagander
s the same. Once it fails, you've found a corrupt block... //Magnus On Tue, Sep 15, 2020 at 12:46 PM Vasu Madhineni wrote: > Is it possible to identify which rows are corrupted in particular tables. > > On Tue, Sep 15, 2020 at 5:36 PM Magnus Hagander > wrote: > >> &g

Re: Obvious data mismatch in View2 which basically SELECT * from View1

2020-09-16 Thread Magnus Hagander
urn rows in a consistent/predictable order. So as long as that query is part of what you're doing, you should not be surprised if you get the rows in an inconsistent/unpredictable order, with whatever follow-on effects that might have. (And it can lead to weird follow-on effects like the ones y

Re: multiple tables got corrupted

2020-09-18 Thread Magnus Hagander
adhineni wrote: > I could see block read I/O errors in /var/log/syslog. if those error fixed > by OS team, will it require recovery. > > Also can i use LIMIT and OFFSET to locate corrupted rows? > > Thanks in advance > > Regards, > Vasu Madhineni > > On Wed, Sep

Re: What version specification used by PG community developers?

2020-10-07 Thread Magnus Hagander
> Was it? > > Pre-10 it was: > > MAJOR.MAJOR.PATCH > Yeah the fact that it kind of looked like semver, but *wasn't* semver, is probably one of the (many) things that confused people. It definitely wasn't semver. -- Magnus Hagander Me: https://www.hagande

Re: Parameter value from (mb/gb) to bytes

2020-10-14 Thread Magnus Hagander
shared_buffers'; > > Ah, forgot that shared_buffers is in 8K pages. > > So you actually need: > >select pg_size_bytes(setting) * 8192 >from pg_settings >where name = 'shared_buffers'; > Actually, it doesn't have to be in 8k pages, that d

Re: Parameter value from (mb/gb) to bytes

2020-10-14 Thread Magnus Hagander
On Wed, Oct 14, 2020 at 5:10 PM Tom Lane wrote: > Magnus Hagander writes: > > On Wed, Oct 14, 2020 at 3:57 PM Thomas Kellerer wrote: > >> select pg_size_bytes(setting) * 8192 > >> from pg_settings > >> where name = 'shared_buffers'; > >

Re: Parameter value from (mb/gb) to bytes

2020-10-14 Thread Magnus Hagander
On Wed, Oct 14, 2020 at 5:23 PM Tom Lane wrote: > Magnus Hagander writes: > > On Wed, Oct 14, 2020 at 5:10 PM Tom Lane wrote: > >> It's fairly annoying that this doesn't work: > >> regression=# select pg_size_bytes(setting||' '||unit) fro

Re: RITM18130676_Query_PostgreSQL support subscription

2020-10-20 Thread Magnus Hagander
Yes, it is free. > PostgreSQL(9.4 - 11) support subscription > The PostgreSQL community does not provide subscriptions. You can find information about the support options, both free and paid, at https://www.postgresql.org/support/. -- Magnus Hagander Me: https://www.hagande

Re: Feature Requests

2020-10-26 Thread Magnus Hagander
hasn't made > production yet. > PostgreSQL does not have such a thing as "open feature requests". You can find patches that are currently being worked on at https://commitfest.postgresql.org/, or on discussions in the list archives. -- Magnus Hagander Me: https://www.

Re: Security issues concerning pgsql replication

2020-10-27 Thread Magnus Hagander
course have to figure out how to securely authenticate the postgres OS user on the standby node to the Kerberos system, but that's doable. (Though I believe most Kerberos implementations also rely on filesystem security to protect the tickets, so if you don't trust your filesystem, you may have a problem with that -- as well as indeed most other authentication systems -- so you'd have to investigate that within the kerberos system). -- Magnus Hagander Me: https://www.hagander.net/ <http://www.hagander.net/> Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>

Re: Security issues concerning pgsql replication

2020-10-27 Thread Magnus Hagander
onsibility over to your Kerberos system. Then you can set that one up to require you to manually type in a password or equivalent to get t a ticket, and configure expiry on that ticket. //Magnus *发件人:* Magnus Hagander [mailto:mag...@hagander.net] > > *发送时间:* 2020年10月27日 17:00 > *收件

Re: CentOS 7 yum package systemd bug?

2020-11-04 Thread Magnus Hagander
at https://www.postgresql.org/docs/13/server-start.html talks about this behaviour, but only notes that crash recovery might be a reason to hit this timeout. Maybe it needs to also mention replication (and probably archive recovery)? > The best place to discuss this would be the "pgsql-pkg-yum" list. I don't think this is a packaging issue, all the RPMs did was enable the functionality that's in core postgresql. -- Magnus Hagander Me: https://www.hagander.net/ Work: https://www.redpill-linpro.com/

Re: PANIC: could not write to log file {} at offset {}, length {}: Invalid argument

2020-11-05 Thread Magnus Hagander
m before handing the actual call up to the operating system. It's completely independent of how the file is opened. -- Magnus Hagander Me: https://www.hagander.net/ Work: https://www.redpill-linpro.com/

Re: JSONB order?

2020-11-05 Thread Magnus Hagander
ore muscles": "No", > "Have you travelled outside of Canada in the past 14 days?": "No", > "Have you had close contact with a confirmed or probable case of > COVID-19?": "No" > } > > If the order had remained the same, it's child's play to pull the data out > and present it in a report, even if the data elements change. > But... seen above, the order gets mixed up. > > Any ideas? The json standard declares that the keys in a document are unordered, and can appear at any order. In PostgreSQL, jsonb will not preserve key ordering, as a feature for efficiency. The plain json datatype will, so if key ordering is important you should use json instead of jsonb (but you should probably also not use the json format in general, as it does not guarantee this) See https://www.postgresql.org/docs/13/datatype-json.html -- Magnus Hagander Me: https://www.hagander.net/ Work: https://www.redpill-linpro.com/

Re: Query a column with the same name as an operator

2020-11-06 Thread Magnus Hagander
it, like SELECT "cast" FROM test (and the same when you create the table, or indeed any references to the column) zone is not, and should be fine. -- Magnus Hagander Me: https://www.hagander.net/ Work: https://www.redpill-linpro.com/

Re: Failed Login Attempts in PostgreSQL

2020-11-13 Thread Magnus Hagander
ple this thread here https://www.postgresql.org/message-id/flat/61463e206b7c4c0ca17b03a59e890b78%40lmco.com, and the config on https://github.com/rc9000/postgres-fail2ban-lockout. (probably needs some small adaptations, but as a base it should work). -- Magnus Hagander Me: https://www.hagander.net/ Work: https://www.redpill-linpro.com/

Re: Issue upgrading from 9.5 to 13 with pg_upgrade: "connection to database failed: FATAL: database "template1" does not exist"

2020-11-13 Thread Magnus Hagander
: dnf install --excludepkg proj --excludepkg proj-datumgrid postgis30_12 as a workaround. *If* the root cause is the same one, that is... -- Magnus Hagander Me: https://www.hagander.net/ Work: https://www.redpill-linpro.com/

Re: Issue upgrading from 9.5 to 13 with pg_upgrade: "connection to database failed: FATAL: database "template1" does not exist"

2020-11-13 Thread Magnus Hagander
On Fri, Nov 13, 2020 at 7:10 PM Magnus Hagander wrote: > dnf install --excludepkg proj --excludepkg proj-datumgrid postgis30_12 > postgis30_12-devel postgis30_12-utils postgis30_12-client postgis30_12-docs > > On Fri, Nov 13, 2020 at 7:01 PM Tom Lane wrote: > > > &g

Re: pg_upgrade from 12 to 13 failes with plpython2

2020-11-18 Thread Magnus Hagander
endent objects too. If you have no functions using it, it will just go away, and once you have dropped it in both databases you should be good to go. And of course, if there are functions depending on it, you should rebuild those on plpython3u before you drop plpython2u (or drop the functions if they're not in use). -- Magnus Hagander Me: https://www.hagander.net/ Work: https://www.redpill-linpro.com/

Re: Linux package upgrade without dependency conflicts

2020-11-20 Thread Magnus Hagander
mostly fine on RHEL7. But if you don't actually show us what your dependency problems are, we can't tell you how to fix it... (And why not use Patroni from the PDGD repositories?) -- Magnus Hagander Me: https://www.hagander.net/ Work: https://www.redpill-linpro.com/

Re: archive file "00000001000000000000006F" has wrong size: 67118648 instead of 16777216

2020-11-25 Thread Magnus Hagander
mand really not have a %f in it anywhere? That definitely seems wrong... But it does seem to copy some files correct, which would be weird if it doesn't. Mistake in the report, or is there something really weird going on with that PostgreSQL_DEV not being a directory but instead some "magic file"? -- Magnus Hagander Me: https://www.hagander.net/ Work: https://www.redpill-linpro.com/

Re: postgres-10 with FIPS

2020-12-09 Thread Magnus Hagander
specifically looking at the Debian or Ubuntu packages, you can find the full packaging information in the salsa repositories at https://salsa.debian.org/postgresql/postgresql. It will have all teh details you need. -- Magnus Hagander Me: https://www.hagander.net/ <http://www.hagander.net/&g

Re: SV: Problem with ssl and psql in Postgresql 13

2020-12-17 Thread Magnus Hagander
1.3 when you use the old version... I assume you're running both the 11 and the 13 client on the same host? -- Magnus Hagander Me: https://www.hagander.net/ Work: https://www.redpill-linpro.com/

Re: SV: Problem with ssl and psql in Postgresql 13

2020-12-17 Thread Magnus Hagander
n.nnn.n.nnn", user > "kalle", database "postgres", SSL off > FATAL: no pg_hba.conf entry for host "nn.nnn.n.nnn", user "kalle", database > "postgres", SSL off > > KR Mikael Gustavsson, SMHI > > > ___

Re: Restoring 9.1 db from crashed disk/VM

2021-01-02 Thread Magnus Hagander
sql.org/ If not, then you will have to build from source manually -- the old versions of PostgreSQL are still available in source form on https://ftp.postgresql.org/pub/source/ -- Magnus Hagander Me: https://www.hagander.net/ Work: https://www.redpill-linpro.com/

Re: Using more than one LDAP?

2021-01-06 Thread Magnus Hagander
bonus you get Kerberos which is a lot more secure than ldap for auth.. It might have a slightly higher barrier of entry, but could probably pay off well in a case like this. -- Magnus Hagander Me: https://www.hagander.net/ Work: https://www.redpill-linpro.com/

Re: Using more than one LDAP?

2021-01-06 Thread Magnus Hagander
On Wed, Jan 6, 2021 at 4:39 PM Paul Förster wrote: > > Hi Magnus, > > > On 06. Jan, 2021, at 15:48, Magnus Hagander wrote: > > > > Only if you can create rules in your pg_hba.conf file that knows where > > the users are. You can specify multiple servers on one

Re: LDAP(s) doc misleading

2021-01-07 Thread Magnus Hagander
ntence -- without that one, your reading of it would make more sense. See also the following parameter, ldaptls, which uses similar language. -- Magnus Hagander Me: https://www.hagander.net/ Work: https://www.redpill-linpro.com/

Re: Using more than one LDAP?

2021-01-07 Thread Magnus Hagander
On Thu, Jan 7, 2021 at 10:40 AM Paul Förster wrote: > > Hi Magnus, > > > On 06. Jan, 2021, at 16:57, Magnus Hagander wrote: > > > > Yes. But you have a really hacky environment :P > > actually not. We have an old LDAP which we want to retire this year. And

Re: pljava": ERROR

2021-01-21 Thread Magnus Hagander
cluded your problem seems to be with the proprietary server product from EnterpriseDB, not with PostgreSQL. For support with that, you should contact the EDB support channels. -- Magnus Hagander Me: https://www.hagander.net/ Work: https://www.redpill-linpro.com/

Re: How to post to this mailing list from a web based interface

2021-01-28 Thread Magnus Hagander
hing, and then reply to that through your normal email. It's not the most convenient workflow, but if you mostly read and only very seldom post, it works. -- Magnus Hagander Me: https://www.hagander.net/ Work: https://www.redpill-linpro.com/

Re: Index created with PGSQL11 on ubuntu 18.04 corrupt with PGSQL11 on ubuntu 20.04

2021-02-02 Thread Magnus Hagander
ges Note that this is triggered by the Ubuntu upgrade, not by upgrading PostgreSQL -- that's why it happend even when you keep using the same PostgreSQL version. -- Magnus Hagander Me: https://www.hagander.net/ Work: https://www.redpill-linpro.com/

Re: How to post to this mailing list from a web based interface

2021-02-18 Thread Magnus Hagander
ing about it). Buttom line is that while it may be a good tool for reading, it is *not* a good tool for posting, at least not until they fix their basic handling of email. -- Magnus Hagander Me: https://www.hagander.net/ Work: https://www.redpill-linpro.com/

Re: problems with my community account on www.postgresql.org

2021-03-03 Thread Magnus Hagander
dy from the mailing list admins help me out here? Hi! You seem to have hit a bug in our oauth1 processing (twitter is the only provider we use oauth1 for, the others use oauth2). I believe it's been fixed now, please try again. -- Magnus Hagander Me: https://www.hagander.net/ Work: https://www.redpill-linpro.com/

Re: Indexes in JSONB

2022-03-29 Thread Magnus Hagander
obviously I understand creating many indexes will impact write > performance and space will be utilized. > > Would like to know if creating indexes in this manner can create any other > issues or inputs on the whole topic of indexes in JSONB types. > You should not be creating i

Re: Does PGDG apt repository support ARM64?

2022-04-01 Thread Magnus Hagander
hs away. You definitely shouldn't be using that. Buster is also considered the "oldstable" version. You should probably be using bullseye. (I assume you're talking about some generic binaries and not the DEB packages of course -- DEB packages should be built on their corres

Re: Does PGDG apt repository support ARM64?

2022-04-01 Thread Magnus Hagander
On Fri, Apr 1, 2022 at 4:52 PM Daniele Varrazzo wrote: > On Fri, 1 Apr 2022 at 16:28, Magnus Hagander wrote: > > > Stretch also goes end of life on June 30 2022, so just a few months > away. You definitely shouldn't be using that. > > The platform is part of the Py

Re: Does PGDG apt repository support ARM64?

2022-04-01 Thread Magnus Hagander
On Fri, Apr 1, 2022 at 5:08 PM Daniele Varrazzo wrote: > On Fri, 1 Apr 2022 at 17:00, Magnus Hagander wrote: > > > > On Fri, Apr 1, 2022 at 4:52 PM Daniele Varrazzo < > daniele.varra...@gmail.com> wrote: > >> > >> On Fri, 1 Apr 2022 at 16:28, Magnus H

Re: Could not read block 0 in file

2022-04-08 Thread Magnus Hagander
new database from initdb (I would also say create a completely new filesystem underneath it since that's where the corruption is, if that's easily done) 4. Restore the pg_dump. At this point it will throw errors on any foreign keys that are "off", and you will have to c

Re: What have I done!?!?!? :-)

2022-04-08 Thread Magnus Hagander
user permissions, none of which it's recommended that the application run with. Doesn't help once the problem has occurred of course, but can help avoid it happening in the future. -- Magnus Hagander Me: https://www.hagander.net/ <http://www.hagander.net/> Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>

Re: How to get updated order data

2022-04-08 Thread Magnus Hagander
a standby server, and there is replication lag > There's also: c) The SELECT runs in a transaction stat *started* before the transaction that a runs in. (Assuming it then retries with a new transaction later, that is) -- Magnus Hagander Me: https://www.hagander.net/ <http://www.hagander.net/> Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>

Re: What have I done!?!?!? :-)

2022-04-08 Thread Magnus Hagander
On Fri, Apr 8, 2022 at 3:07 PM Jan Wieck wrote: > On 4/8/22 08:58, Magnus Hagander wrote: > > A side-note on this, which of course won't help the OP at this point, > > but if the general best practice of not running the application with a > > highly privileged accoun

Re: What have I done!?!?!? :-)

2022-04-08 Thread Magnus Hagander
ill fail to commit if the foreign key is broken *at that point*. But it lets you do things like modify multiple tables that refer to each other, and have the changes only checked when they're all done. -- Magnus Hagander Me: https://www.hagander.net/ <http://www.hagander.net/> Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>

Re: What have I done!?!?!? :-)

2022-04-08 Thread Magnus Hagander
On Fri, Apr 8, 2022 at 3:27 PM Magnus Hagander wrote: > > > On Fri, Apr 8, 2022 at 3:23 PM Perry Smith wrote: > >> >> >> On Apr 8, 2022, at 07:47, Jan Wieck wrote: >> >> On 4/8/22 01:57, Nikolay Samokhvalov wrote: >> >> On Thu, Apr 7, 2022

Re: A error happend when I am clone the git repository

2022-06-20 Thread Magnus Hagander
and it worked fine from all of them, even when artificially slowing it down to something much slower. So yes, there is *something*, but it's not with in the pg.org infrastructure. One thing we got to work that time, I think, was to run: git config --global http.version HTTP/1.1 -- Magnus Hagander Me: https://www.hagander.net/ <http://www.hagander.net/> Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>

Re: Table space not returned to the OS ?

2022-06-27 Thread Magnus Hagander
ified that the new one works. This looks like a debian/ubuntu system, which means you probably forgot to run "pg_dropcluster 12 main"? Or if it's not a debian cluster, the equivalent of that which results in removing the data directory for 12 along with any configuration files

Re: Different sort result between PostgreSQL 8.4 and 12.5

2022-06-27 Thread Magnus Hagander
ity? > > Are these two really running on the same operating system? This looks a lot like the locale changes included in newer versions of glibc, and is in that case dependent on an upgrade of the operating system, not an upgrade of PostgreSQL. See https://wiki.postgresql.org/wiki/Locale_data_changes for details. -- Magnus Hagander Me: https://www.hagander.net/ <http://www.hagander.net/> Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>

Re: Table space not returned to the OS ?

2022-06-27 Thread Magnus Hagander
On Mon, Jun 27, 2022 at 12:01 PM Laurenz Albe wrote: > On Mon, 2022-06-27 at 11:38 +0200, Magnus Hagander wrote: > > On Mon, Jun 27, 2022 at 11:30 AM Florents Tselai < > florents.tse...@gmail.com> wrote: > > > A few months back (October) I had upgraded a Postgre

Re: Are ZFS snapshots unsafe when PGSQL is spreading through multiple zpools?

2023-01-15 Thread Magnus Hagander
f risk > taken when snapshotting a PGSQL instance spread across two (or more) > different pools? > > > "Don't do it". If you can't get atomic snapshots, don't do it, period. You can use them together with a regular online backup. That is pg_start_backup(

Re: Are ZFS snapshots unsafe when PGSQL is spreading through multiple zpools?

2023-01-15 Thread Magnus Hagander
On Sun, Jan 15, 2023 at 10:57 PM HECTOR INGERTO wrote: > > > > But you cannot and should not rely on snapshots alone > > > > That’s only for non atomic (multiple pools) snapshots. Isn’t? > Right. For single-filesystem installs it should be fine. Just make sure it has both the data and the WAL di

  1   2   >