Configuration files affecting database connection speed? #1920
-
|
Hi, I've used pgModeler for a few weeks now and I think it's awesome, thanks a lot for creating it! Now I have a very strange problem and am hoping that someone can help me. Because the problem is so weird, this is going to be a longer post to explain it properly - sorry for that. A few days ago, all connections from pgModeler to PostgreSQL became really slow. For example, when I select a new table in the data manipulation grid, it takes up to 4-6 seconds until the table loads, even if it's really small or empty: This only happens when connecting to Postgres from pgModeler, other clients work fine (I ran pgbench - all good). I'm using Fedora 41 with Plasma 6 as DE. Postgres is v16.4 in a podman container. pgModeler in Fedora currently is v1.1.3. To arrow down the cause, I
Nothing eliminated the problem - the connection from pgModeler to Postgres remained slow. The last thing I did: I created a test user with a clean home directory and ran the same setup there (Postgres 16 in podman, pgModeler v1.1.3). So the cause for the slow connections must be somewhere in the configuration of my normal user. What other configurations, other than I'm thankful for any ideas to narrow this further down! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
That's really strange. Never faced something like this. Does connecting to another database server (not in your machine ) has the same undesired effect? Are you browsing tables that has long text (thousand of bytes) in their columns ? The only configuration directory is the one you mentioned, and I doubt that the configuration files are the culprits. |
Beta Was this translation helpful? Give feedback.
-
|
OK, I found the cause: It was Kerberos. I ran pgModeler trough strace and saw a lot of connections to And now I remember what I did, right before the connections became slow: I installed Fedora packaging tools and acquired a Fedora Kerberos ticket, so from that point on sssd-kcm had credentials stored for my user. My test user doesn't have any credentials stored, hence it wasn't affected. I get a fast connection, if I add Phew, now I can sleep again - this was driving me nuts ;) |
Beta Was this translation helpful? Give feedback.

OK, I found the cause: It was Kerberos.
I ran pgModeler trough strace and saw a lot of connections to
/var/run/.heim_org.h5l.kcm-socketeven though I don't have SSL or GSSAPI enabled for my test database.And now I remember what I did, right before the connections became slow: I installed Fedora packaging tools and acquired a Fedora Kerberos ticket, so from that point on sssd-kcm had credentials stored for my user. My test user doesn't have any credentials stored, hence it wasn't affected.
I get a fast connection, if I add
gssencmode=disableto "Other params" (I had to explicitly add the whitespace at the end).Phew, now I can sleep again - this was driving me nuts ;)