Re: permission denied to create and drop user

2021-02-02 Thread Tom Lane
bootstrap superuser might not be named postgres (it'll be named after whichever OS user ran initdb). However, your "\du" output pretty clearly shows you have no superuser, and that's just odd. regards, tom lane

Re: cant connect to localhost:5432 (but unix socket ok)

2021-02-04 Thread Tom Lane
you need to look at the kernel firewall (packet filter) settings. regards, tom lane

Re: ltree and PHP

2021-02-04 Thread Tom Lane
search_path setting you're using from PHP. regards, tom lane

Re: Should pgAdmin 3 be saved?

2021-02-06 Thread Tom Lane
ld do so. It's a matter of finding people with the time, interest, and technical ability. regards, tom lane

Re: Increased size of database dump even though LESS consumed storage

2021-02-09 Thread Tom Lane
pect compression opportunity losses to more or less balance out with opportunity gains over such a large data volume, but maybe you were unlucky. Or perhaps the move into a single table was done in such a way that it actually decreased locality-of-reference, eg maybe similar rows were grouped before and now they're not. regards, tom lane

Re: How to I select value of GUC that has - in its name?

2021-02-09 Thread Tom Lane
verything else copes. I think we should probably sanitize custom GUC names at least to the extent of forbidding '=' and '-'. Maybe we should go further and insist they look like regular identifiers. (Fortunately, ALTER USER SET with a custom GUC is superuser-only, so there's no need to worry about security issues here. But we should eliminate surprises.) regards, tom lane

Re: psql behavior change on upgrade from version 12.x to 13.1

2021-02-09 Thread Tom Lane
/usr/lib/libedit.3.dylib (compatibility version 2.0.0, current version 3.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1292.60.1) of which the relevant bit for this purpose is "/usr/lib/libedit.3.dylib", pointing to the Apple-supplied version of libedit. Maybe you see something else? regards, tom lane

Re: psql behavior change on upgrade from version 12.x to 13.1

2021-02-09 Thread Tom Lane
libreadline is fairly configurable, so maybe this boils down to some unintentional change in your ~/.inputrc ? regards, tom lane

Re: Compiler warnings on Debian 10

2021-02-11 Thread Tom Lane
butes] Huh. What compiler are you using, exactly? Perhaps you used a different compiler when running configure (or are trying to re-use configure results from some other machine)? regards, tom lane

Re: Compiler warnings on Debian 10

2021-02-11 Thread Tom Lane
igure output clearly shows that it thought gnu_printf is fine: checking for printf format archetype... gnu_printf Possibly the corresponding section of config.log would provide more insight. regards, tom lane

Re: Compiler warnings on Debian 10

2021-02-11 Thread Tom Lane
tting built with "c++", so now I wonder exactly which compiler that is. You could probably suppress these complaints by passing "CXX=g++" to configure. Or at least, you could if g++ was installed, but I think configure will default to that if it can find it... regards, tom lane

Re: Consequence of changes to CTE's in 12

2021-02-11 Thread Tom Lane
o the trick. regards, tom lane

Re: Consequence of changes to CTE's in 12

2021-02-11 Thread Tom Lane
there are optimization fences both above and below where the WHERE clause is. You have one above from the LIMIT 1, but (with the new interpretation of CTEs) not one below it. Adding a fence -- either OFFSET 0 or LIMIT ALL -- to the first CTE should fix it in a reasonably version-independent fashi

Re: kernel.shmmax and kernel.shmall for Linux server

2021-02-12 Thread Tom Lane
ry if I saw server startup failures. These values do *not* constrain what you can set for shared_buffers or the like; at most, they'd constrain how many PG instances you can run on one machine. regards, tom lane

Re: prepare in a do loop

2021-02-15 Thread Tom Lane
arly opposites. Perhaps a different name should have been chosen, but we're stuck now. regards, tom lane

Re: ADD FOREIGN KEY fails, but the records exist

2021-02-15 Thread Tom Lane
ps Oracle is more forgiving of such things than PG is. regards, tom lane

Re: pg_stat_user_tables.n_mod_since_analyze persistence?

2021-02-15 Thread Tom Lane
t to 0. > Can anyone confirm (or refute) that the behavior I see on my Mac > (preservation of these values through a restart) is common & expected > behavior? Yeah, in PG those stats would be preserved, at least as long as it's a clean shutdown. regards, tom lane

Re: Error with pg_dump (of data), with --role

2021-02-18 Thread Tom Lane
at for it. While that's annoying, it's also good practice. Functions that could be invoked in these contexts really ought not assume what search path they are called with. I do not think any of the other details you mentioned, such as use of --role, have any impact on this. regards, tom lane

Re: Error with pg_dump (of data), with --role

2021-02-19 Thread Tom Lane
Ken Tanzer writes: > On Thu, Feb 18, 2021 at 8:44 PM Tom Lane wrote: >> There was a security change to pg_dump a few years ago to make it >> put "set search_path = pg_catalog" into the dump script. This >> basically means that any user-defined function in indexe

Re: Error with pg_dump (of data), with --role

2021-02-19 Thread Tom Lane
public schema is world-writable, though, you're in big trouble anyway ... regards, tom lane

Re: Getting unexpected results from regexp_replace

2021-02-21 Thread Tom Lane
..', the backslashes are eaten by the string literal parser. So the pattern seen by regexp_replace() is just '(.*)', in which the parens are capturing parens not literal characters. Thus it matches the whole string. Personally I'd leave off the E, but if you must use it then double the backslashes. regards, tom lane

Re: Streaming replication between different OS

2021-02-22 Thread Tom Lane
resql.org/wiki/Locale_data_changes you should be okay for rhel/centos 6 to 7 migration unless you use de_DE locale. But I don't know how thorughly that's been checked. Using logical not physical replication might be safer. regards, tom lane

Re: fdatasync performance problem with large number of DB files

2021-02-22 Thread Tom Lane
s department, but I don't think that's very portable. Moreover, even on Linux there's no way to detect whether any of the writes failed. Barring some solution to those problems, we would be unlikely to take a patch that uses sync() instead of fsync(). regards, tom lane

Re: Custom base type and suboptimal query plans

2021-02-23 Thread Tom Lane
m type. As of v13 I don't think there's anything in that area that custom types can't replicate ... but there certainly is plenty of infrastructure for the standard types that you'll need to build out if you want equivalent functionality. regards, tom lane

Re: New operators and class for jsonb with gin indexing

2021-02-23 Thread Tom Lane
s://www.postgresql.org/docs/13/gin-extensibility.html After reading that, I'd suggest looking into the code for gin opclass support in various contrib modules (hstore might be a good start). regards, tom lane

Re: New operators and class for jsonb with gin indexing

2021-02-23 Thread Tom Lane
hose functions work The support functions need to know about the operators' semantics, so you have to write your own when inventing new operators. regards, tom lane

Re: Custom base type and suboptimal query plans

2021-02-23 Thread Tom Lane
Ayo writes: > On 2021-02-23, Tom Lane wrote: >> The slow query isn't using the chars_pkey1 index, which makes one >> wonder if you have a corresponding index in the custom-type case, > The index exists and is usable in the custom-type case: Hmm. The next most li

Re: pg_restore - generated column - not populating

2021-02-23 Thread Tom Lane
Santosh Udupi writes: > Right. pg_dump under the pgAdmin runtime folder works perfectly. pg_dump > in postgres13 (ubuntu) does not work. Exact same syntax. So, are these identical pg_dump versions? We did fix some things in this area in 13.2. regards, tom lane

Re: Custom base type and suboptimal query plans

2021-02-23 Thread Tom Lane
erator class? Hmm ... did you remember to set the oprcanhash property on the equality operator? regards, tom lane

Re: Custom base type and suboptimal query plans

2021-02-23 Thread Tom Lane
e hash or btree (respectively) opclass. regards, tom lane

Re: pg_restore - generated column - not populating

2021-02-23 Thread Tom Lane
Hmm ... well, that would be a regression, but you're going to have to show us how to reproduce it. I'm thinking there must be something odd about the way the table is declared. regards, tom lane

Re: converting text to bytea

2021-02-25 Thread Tom Lane
Yambu writes: > Is there a reason why i'm getting text when i run the below > select convert_to('some_text', 'UTF8')i get back 'some_text' You must have bytea_output set to "escape". regards, tom lane

Re: Extension intarray and null values

2021-02-25 Thread Tom Lane
ly because it doesn't handle cases like null entries. If you're in need of that, my suggestion is to ditch intarray. regards, tom lane

Re: PostgreSQL URI

2021-02-25 Thread Tom Lane
#x27;t understand is the [,...] part, i.e. optionally repeating > argument. You can repeat the host[:port] part, no more. regards, tom lane

Re: PostgreSQL URI

2021-02-25 Thread Tom Lane
? Seems like that would clarify how much you can repeat. regards, tom lane

Re: PostgreSQL URI

2021-02-25 Thread Tom Lane
=?utf-8?Q?Paul_F=C3=B6rster?= writes: >> On 25. Feb, 2021, at 16:22, Tom Lane wrote: >> Hmm. Maybe >> postgresql://[user[:password]@][host[:port][,...]][/dbname][?param1=value1&...] >> ? Seems like that would clarify how much you can repeat. > yes, that looks

Re: Extension intarray and null values

2021-02-25 Thread Tom Lane
n integer array using the built-in array opclass. It might be a shade slower than intarray, but maybe it's 120ms instead of 100, and it'll handle nulls correctly. regards, tom lane

Re: Postgres Analog of Oracle APPEND hint

2021-02-25 Thread Tom Lane
of course not the advice to use COPY. regards, tom lane

Re: PostgreSQL Licensing Question for pg_crypto and tablefunc extensions

2021-02-25 Thread Tom Lane
tantially different in meaning from the main copyright notice. This is also true of bits of the core server, actually.) Extensions you get from elsewhere might have different copyrights though. regards, tom lane

Re: PostgreSQL URI

2021-02-26 Thread Tom Lane
ostspec is [host][:port][,...] Also, the paramspec is under-bracketed today. Should be more like paramspec is param=value[&...] regards, tom lane

Re: PostgreSQL URI

2021-02-26 Thread Tom Lane
that it >> refers to either of both host *and* port. > I think an easier fix is to move the repeat to the main line, i.e., make > it "hostspec[,...]" and then hostspec is only [host][:port]. WFM. Who's going to write the patch? (I can, but if one of you wants to, be my guest.) regards, tom lane

Re: PostgreSQL URI

2021-02-26 Thread Tom Lane
t those are needed to clarify what you can repeat; I think they add confusion not clarity. Besides, the adjacent text and examples make this quite clear. regards, tom lane

Re: Problem building psql on Mac OS 10.15 (around readline bit I think)

2021-02-28 Thread Tom Lane
ot; since your last successful PG build? Do you have either MacPorts or Homebrew stuff on this machine? FWIW, I don't think we've changed anything in this immediate area in quite some time. So I guess something in your environment changed, but it's not clear what. regards, tom lane

Re: Localizing stored functions by replacing placeholders in their body

2021-03-02 Thread Tom Lane
stem catalogs seems like a really bad one. Why not pass the code through sed or the like ahead of feeding it to psql? But you'd have to get the regex syntax right in any case.) regards, tom lane

Re: permission denied for pg_temp_XX when vacuuming

2021-03-03 Thread Tom Lane
re schemas for temporary tables, which you cannot VACUUM outside the > session that created them, so you can safely ignore these errors. Indeed, but I'm wondering why vacuumdb isn't skipping them automatically. Something fishy seems to be happening there. regards, tom lane

Re: permission denied for pg_temp_XX when vacuuming

2021-03-03 Thread Tom Lane
ing anywhere near a temp table. regards, tom lane

Re: permission denied for pg_temp_XX when vacuuming

2021-03-03 Thread Tom Lane
there. I think you can just do \dt pg_temp_*.* in psql (as superuser) to see what's out there. Figuring out which ones are live sessions' temp tables might be harder, though. regards, tom lane

Re: Couldn't cast to record[]

2022-03-03 Thread Tom Lane
Suresh Kumar R writes: > When I query that table I need the pg_typeof(column) as record[] instead of > composite_type[]. Why? record[] is considered a pseudotype (polymorphic type), which is why casting to it doesn't do anything. regards, tom lane

Re: [EXT] Re: Looking for tips on improving full-text search quality in Postgres

2022-03-04 Thread Tom Lane
at our FTS features have basically been on autopilot since they went in. I'd sort of hoped that we'd see more parsers, more ranking functions, etc, over time ... but nothing like that has happened. I'm not sure if that's just lack of interest, or if people find the code too difficult to work with. regards, tom lane

Re: [EXT] Re: Looking for tips on improving full-text search quality in Postgres

2022-03-04 Thread Tom Lane
ther ranking function. The documentation is pretty clear that they don't, they just consider each document in isolation. Building a structure that would allow more-global info to be taken into account is an interesting project that nobody's tackled. regards, tom lane

Re: Interesting fail when migrating Pg from Ubuntu Bionic to Focal

2022-03-04 Thread Tom Lane
source-filesystem-13.0.0-3.fc35.aarch64 gcc-11.2.1-9.fc35.aarch64 gcc-c++-11.2.1-9.fc35.aarch64 llvm-13.0.0-4.fc35.aarch64 llvm-devel-13.0.0-4.fc35.aarch64 llvm-libs-13.0.0-4.fc35.aarch64 llvm-static-13.0.0-4.fc35.aarch64 llvm-test-13.0.0-4.fc35.aarch64 Don't think I can readily install anything as old as LLVM 9 ... regards, tom lane

Re: Interesting fail when migrating Pg from Ubuntu Bionic to Focal

2022-03-04 Thread Tom Lane
hubert depesz lubaczewski writes: > On Fri, Mar 04, 2022 at 02:09:52PM -0500, Tom Lane wrote: >> I tried and failed to reproduce this on Fedora 35 on aarch64, >> but that has what I think is a newer LLVM version: > I have suspicion that it also kinda depends on number of rows

Re: Interesting fail when migrating Pg from Ubuntu Bionic to Focal

2022-03-04 Thread Tom Lane
Mladen Gogala writes: > On 3/4/22 17:03, Tom Lane wrote: >> Mmm ... it might have just been that the planner chose not to use >> JIT when it thought there were fewer rows involved. Did you check >> with EXPLAIN that these cut-down cases still used JIT? > This is int

Re: Couldn't cast to record[]

2022-03-05 Thread Tom Lane
ient-side stack wants a type OID for a result column, it's unlikely to be satisfied with a pseudotype OID anyway. That provides next-to-no useful information about how to interpret values. Are you sure you can't just leave the type unspecified (e.g. zero) in whatever API is giving you trou

Re: Interesting fail when migrating Pg from Ubuntu Bionic to Focal

2022-03-06 Thread Tom Lane
hubert depesz lubaczewski writes: > On Fri, Mar 04, 2022 at 05:03:14PM -0500, Tom Lane wrote: >> Mmm ... it might have just been that the planner chose not to use >> JIT when it thought there were fewer rows involved. Did you check >> with EXPLAIN that these cut-down cases

Re: Do you know a json_populate_record alternative method to create a ROW with a named field notation?

2022-03-06 Thread Tom Lane
ontact -- (John,Doe) (1 row) A bit tedious to set up, but it would have some advantages, eg you could provide default values. regards, tom lane

Re: Interesting fail when migrating Pg from Ubuntu Bionic to Focal

2022-03-07 Thread Tom Lane
t my raspberry pi 3B+ is sufficiently different hardware from your box as to not see the problem. Doubt that though.) Can you create a self-contained test case? regards, tom lane

Re: Getting more detail in plpython error messages

2022-03-07 Thread Tom Lane
pection_id_fk" on table > "inspection_weather"',)) > Is there a way to get the DETAIL part as well? It's not very well documented AFAICS, but a SPIError object has a "detail" attribute, so "e.detail" should help you. It looks like you might prefer to print "e.spidata", which seems to contain all the available fields. regards, tom lane

Re: Serializable read only deferrable- implications

2022-03-08 Thread Tom Lane
rc/backend/storage/lmgr/README-SSI, which might or might not be the level of detail you are looking for. regards, tom lane

Re: PQresultMemorySize of ResultSet larger than expected

2022-03-10 Thread Tom Lane
BLOCKSIZE and associated comments, starting about line 90 in fe-exec.c. I don't recall whether there was any specific motivation for PGRESULT_DATA_BLOCKSIZE to be 2K rather than some other value; but it wouldn't do for it to be very small. regards, tom lane

Re: foreign key on delete cascade order?

2022-03-10 Thread Tom Lane
t quite sure why order should matter. regards, tom lane

Re: foreign key on delete cascade order?

2022-03-10 Thread Tom Lane
hen have the delete queue up waiting for the lock > to be removed? With the amount of detail you've provided (viz: none), it's impossible for anyone to guess what your problem actually is, let alone speculate on suitable solutions. regards, tom lane

Re: Am I in the same transaction block in complex PLPGSQL?

2022-03-11 Thread Tom Lane
s a procedure not a function, you can explicitly COMMIT what's been done so far, and then your next action starts a new transaction. But without such measures, all actions executed by a function are part of the same transaction as the calling statement. regards, tom lane

Re: LISTEN/NOTIFY ultra slow speed

2022-03-14 Thread Tom Lane
always returns 0. What PG version is this exactly? What is in $PGDATA/pg_notify/ ? regards, tom lane

Re: [External]Re: Postgres Crash Issue

2022-03-15 Thread Tom Lane
down request 2022-03-15 10:07:48.244 EDT [315456] LOG: database system is shut down None of this gets us any closer to understanding where the signal came from, unfortunately. regards, tom lane

Re: Re[2]: LISTEN/NOTIFY ultra slow speed

2022-03-15 Thread Tom Lane
r later, where that code has been improved. regards, tom lane

Re: Corrupt Index

2022-03-15 Thread Tom Lane
. If the index was on a string type (text/varchar), the most likely explanation is a switch to a different OS version with inconsistent collation rules. See https://wiki.postgresql.org/wiki/Locale_data_changes regards, tom lane

Re: Can you install/run postgresql on a FIPS enabled host?

2022-03-21 Thread Tom Lane
ake this work better than it did in older versions; but I can't tell from the log messages whether the issue being fixed was new-in-14 or not.) regards, tom lane

Re: [EXTERNAL] Re: Can you install/run postgresql on a FIPS enabled host?

2022-03-21 Thread Tom Lane
perhaps the underlying > problem is there? This definitely looks like the problem is on the client side not the server side. It might be worth asking on pgsql-jdbc to see if it's that driver or not; but it could be coming from somewhere else in the Java ecosystem. regards, tom lane

Re: Unexpected zero results

2022-03-23 Thread Tom Lane
tQUEL language. Dunno what the SQL standard has to say on the subject --- but it wouldn't surprise me if they don't allow it. regards, tom lane

Re: Get primary key of a table through SPI

2022-03-24 Thread Tom Lane
any case they're less stable across major versions than the SPI APIs. So it's a tradeoff. regards, tom lane

Re: Leading comments and client applications

2022-03-25 Thread Tom Lane
er is perfectly capable of ignoring those by itself, though. (Awhile back I tried to remove that psql behavior, but it caused too much churn in our regression tests.) regards, tom lane

Re: Leading comments and client applications

2022-03-25 Thread Tom Lane
t, or changed how the server counts lines within a query, we concluded that this would confuse too many people and break too many applications; so we left it alone. (As of v15, psql will send -- comments that begin *after* the first non-whitespace token of a query [1]. But leading comments and whi

Re: support for DIN SPEC 91379 encoding

2022-03-27 Thread Tom Lane
We follow that spec, so depending on what DIN 91379 *actually* says, we might have additional reasons not to be in compliance. I don't read German unfortunately. regards, tom lane [1] http://www.faqs.org/rfcs/rfc3629.html

Re: Performance issues on FK Triggers after replacing a primary column

2022-03-28 Thread Tom Lane
llback on any problem without causing an abnormal data state regarding > the program. Hmm, are you dropping and re-adding the reference-side indexes as part of the same transaction that is doing this? I'm too short of caffeine to recall details, but I think there are cases where a newly-made index cannot be used right away. regards, tom lane

Re: Why is my function inlined only when STABLE?

2022-03-29 Thread Tom Lane
immutable function applied to constant(s), the planner prefers to fold to a constant by just executing the function. The inline-ing transformation is considered only when that case doesn't apply. regards, tom lane

Re: gist segmentation fault

2022-04-04 Thread Tom Lane
is is the same problem already reported at [1]. It's an unfortunate error in the GIST ltree opclass. You could apply the patch [2] locally perhaps, if you don't want to wait around for 14.3. regards, tom lane [1] https://www.postgresql.org/message-id/flat/17406-7

Re: Cascade view drop permission checks

2022-04-06 Thread Tom Lane
e table and leaving a broken view behind isn't good. Neither is refusing to let the owner drop her object. regards, tom lane

Re: Per-Table vacuum_freeze_min_age

2022-04-06 Thread Tom Lane
database or table context like other > autovacuum settings? There's an autovacuum_freeze_min_age reloption, isn't that what you need? regards, tom lane

Re: psql removes dashed comments

2022-04-07 Thread Tom Lane
anefficient.com This might be more on-point: https://www.postgresql.org/message-id/flat/CAJcOf-cAdMVr7azeYR7nWKsNp7qhORzc84rV6d7m7knG5Hrtsw%40mail.gmail.com regards, tom lane

Re: Constraint ordering

2022-04-09 Thread Tom Lane
in name order. Uniqueness constraints are not enforced by triggers though; I wouldn't care to rely on the order in which those are checked. regards, tom lane

Re: PostgreSQL : error hint for LATERAL join

2022-04-11 Thread Tom Lane
d surely make the hint a confusing mess. Another way to look at it is that there are only two allowed semantic behaviors here: INNER and LEFT joins. The fact that there's more than one way to spell an inner join is a historical accident. regards, tom lane

Re: How easy is it to lose permissions in 'public' schema?

2022-04-11 Thread Tom Lane
blic' got removed from grantee? > I'm going to say someone read this: > https://wiki.postgresql.org/wiki/A_Guide_to_CVE-2018-1058:_Protect_Your_Search_Path > And did something along the line of this: > REVOKE CREATE ON SCHEMA public FROM PUBLIC; Note that that only recommends removing CREATE, though, not USAGE which is what Rob seems to be lacking. regards, tom lane

Re: OpenSSL@1.1 not getting linked with Homebrew - trying to install postgresql

2022-04-12 Thread Tom Lane
export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include" would need to be applied while *building* Postgres. If you've already built it, or are trying to install a prebuilt package, those flag settings won't do anything. regards, tom lane

Re: alter function/procedure depends on extension

2022-04-12 Thread Tom Lane
dropped. This addition might be worth making, though. (likewise for the other instances, of course) regards, tom lane

Re: ERROR: XX000: cache lookup failed for type 75083631

2022-04-14 Thread Tom Lane
ing pg_type could be advisable.) 2. Check for bogus entries in pg_depend: select * from pg_depend where objid = 75083631; select * from pg_depend where refobjid = 75083631; 3. If there's just one hit in pg_depend then it's probably safe to delete that row. regards, tom lane

Re: function defined (or not), more worries on version 10->14 upgrade

2022-04-15 Thread Tom Lane
you're not supposed to use parameter names in \df, only their types. It seems like whitespace ought to be allowed though. regards, tom lane

Re: function defined (or not), more worries on version 10->14 upgrade

2022-04-15 Thread Tom Lane
gument parsing in \df and \sf. regards, tom lane

Re: function defined (or not), more worries on version 10->14 upgrade

2022-04-15 Thread Tom Lane
"David G. Johnston" writes: > On Fri, Apr 15, 2022 at 2:20 PM Tom Lane wrote: >> While I've not yet looked at the code, I've got no reason to think >> this is anything except fragile argument parsing in \df and \sf. > I'm unsure about the "

Re: function defined (or not), more worries on version 10->14 upgrade

2022-04-15 Thread Tom Lane
of v14, so maybe the details don't have a huge constituency yet. regards, tom lane

Re: Help with large delete

2022-04-16 Thread Tom Lane
ferencing column. PG doesn't require one to exist to create an FK; but if you don't, deletes of referenced rows had better be uninteresting to you performance-wise, because each one will cause a seqscan. regards, tom lane

Re: ***SPAM*** Re: Help with large delete

2022-04-16 Thread Tom Lane
Perry Smith writes: > On Apr 16, 2022, at 10:33, Tom Lane wrote: >> The most obvious question is do you have an index on the referencing >> column. PG doesn't require one to exist to create an FK; but if you >> don't, deletes of referenced rows had better be unin

Re: Error dydl : image not found when trying to install pg on Catalina

2022-04-17 Thread Tom Lane
rst. But there could be other version-skew problems lurking behind this one, so prodding the formula maintainer seems to be the easiest path. regards, tom lane

Re: No psql md5 auth, psql 14.1 to PG 11

2022-04-18 Thread Tom Lane
Linux, what does "sysctl crypto.fips_enabled" say? (This theory also requires that v14 was built with openssl support.) FWIW, v15 will provide a more on-point error message in such cases. regards, tom lane

Re: No psql md5 auth, psql 14.1 to PG 11

2022-04-18 Thread Tom Lane
"Pete O'Such" writes: > Yup, FIPS-mode is on for both ends. I'd love a pointer to docs or other > resources for figuring out what the path forward looks like. You could switch to SCRAM passwords, if you don't need to support any clients using pre-v10 libpq.

Re: oldest xmin is far in the past :: BUT xmin is not available in system

2022-04-19 Thread Tom Lane
at. Manual vacuuming isn't going to help until you get rid of the old open transaction. Look into pg_prepared_xacts and pg_stat_activity. regards, tom lane

Re: Re: Unexpected result from ALTER FUNCTION— looks like a bug

2022-04-19 Thread Tom Lane
emantic rule) but perfectly valid to write syntactically. I'm not sure that that's actually disallowed. In any case, Bryn's right, the combination of a SET clause and a PARALLEL clause is implemented incorrectly in AlterFunction. Careless coding :-( regards, tom lane

Re: Unexpected result from ALTER FUNCTION— looks like a bug

2022-04-19 Thread Tom Lane
fore set_items fixes the problem, as in the >> attached. > This time with the file. Yeah, I arrived at the same fix. Another possibility would be to make the procForm pointer valid again after heap_modify_tuple, but that seemed like it'd add more code for no really good reason. regards, tom lane

Re: Re: Unexpected result from ALTER FUNCTION— looks like a bug

2022-04-19 Thread Tom Lane
I'm not sure that insisting that that stanza be last is especially useful advice for future hackers, because someday there might be more than one variable-length field that this function needs to update. regards, tom lane

Re: PITR and Temp Tables

2022-04-20 Thread Tom Lane
ssion that is about to begin using a temp schema will clean out any surviving contents. So if you rewound to a point where some temp objects exist, it'd be the responsibility of the first session that wants to use a given temp schema to clean out those objects. regards, tom lane

<    6   7   8   9   10   11   12   13   14   15   >