Re: Using random() in update produces same random value for all

2018-01-22 Thread Tom Lane
Jeff Janes writes: > On Mon, Jan 22, 2018 at 9:16 AM, Tom Lane wrote: >> The point here is that that's an uncorrelated subselect --- ie, it >> contains no outer references --- so it need not be, and is not, >> re-evaluated at every outer row. > That seems rath

Re: PostgreSQL Restore Database Without Backup and Log

2018-01-28 Thread Tom Lane
won't be cheap though. There's definitely no easy, certain-to-work answer. regards, tom lane

Re: pg_trgm Extension Installed but Operators and Functions do not exist

2018-01-28 Thread Tom Lane
ion is installed in a schema that isn't in your search_path. regards, tom lane

Re: Information on savepoint requirement within transctions

2018-01-29 Thread Tom Lane
havior in this area come up, they get batted down. What we do have though is client-side support for appropriate behaviors. In psql, see the AUTOCOMMIT and ON_ERROR_ROLLBACK control variables. Other interfaces such as JDBC have their own ideas about how this ought to work. regards, tom lane

Re: Information on savepoint requirement within transctions

2018-01-29 Thread Tom Lane
"David G. Johnston" writes: > On Mon, Jan 29, 2018 at 8:33 AM, Tom Lane wrote: >> What we do have though is client-side support for appropriate behaviors. >> In psql, see the AUTOCOMMIT and ON_ERROR_ROLLBACK control variables. > Not quite the same. I think what peop

Re: EXPLAIN BUFFERS: dirtied

2018-01-29 Thread Tom Lane
Vitaliy Garnashevich writes: > But what is "dirtied" statistics? When a SELECT query could make pages > dirty? Setting hint bits on recently-committed rows. regards, tom lane

Re: Regex Replace with 2 conditions

2018-02-05 Thread Tom Lane
behind to combine additional condition(s) with a basic character-class pattern. Something like (?=[\001-\377])[^A-Za-z0-9%_] regards, tom lane

Re: pgcrypto.gen_random_uuid() or uuid-ossp.uuid_generate_v4()?

2018-02-06 Thread Tom Lane
t building that contrib module against some other implementations; but there are still going to be systems on which installing uuid-ossp is inconvenient. There may also be a belief that pgcrypto's result is more cryptographically secure, though I wouldn't swear to that. regards, tom lane

Re: "could not receive data from client" && "incomplete startup packet"

2018-02-08 Thread Tom Lane
issues of assorted severities. For reference, the current latest minor releases are 10.2, 9.6.7, 9.5.11, 9.4.16, 9.3.21 (all newly minted today, as it happens). The 9.0.x and 8.x.x release branches have been out of support for years. regards, tom lane

Re: New Copy Formats - avro/orc/parquet

2018-02-11 Thread Tom Lane
package it as one.) regards, tom lane

Re: New Copy Formats - avro/orc/parquet

2018-02-11 Thread Tom Lane
Andres Freund writes: > On February 11, 2018 2:48:13 PM PST, Tom Lane wrote: >> (Any such patch should manage >> to turn COPY-CSV into an extension, at least so far as copy.c is >> concerned, even if we don't package it as one.) > Yea, I was thinking we should

Re: New Copy Formats - avro/orc/parquet

2018-02-12 Thread Tom Lane
uot;Almost" because there'd need to be a way for it to support the appropriate options. So this means that whatever the mechanism is for extension-specific options, it has to be introspectable enough for file_fdw.c to understand what to expose as FDW options. regards, tom lane

Re: I do not get the point of the information_schema

2018-02-12 Thread Tom Lane
there for a very long time; we don't like to break plausible client queries lightly. regards, tom lane

Re: Multiple postmasters running from same directory

2018-02-13 Thread Tom Lane
rograms. Putting two and two together, you have some monitoring program that is hitting the postmaster with a constant stream of TCP connection requests none of which get completed, resulting in a whole lot of useless fork activity. Dial down the monitoring. regards, tom lane

Re: Multiple postmasters running from same directory

2018-02-13 Thread Tom Lane
Francisco Olarte writes: > On Tue, Feb 13, 2018 at 4:50 PM, Tom Lane wrote: >> Putting two and two together, you have some monitoring program that is >> hitting the postmaster with a constant stream of TCP connection requests >> none of which get completed, resulting in a

Re: Multiple postmasters running from same directory

2018-02-13 Thread Tom Lane
process inherits its title from the parent at fork(), and per this discussion, they haven't changed it yet. regards, tom lane

Re: I do not get the point of the information_schema

2018-02-13 Thread Tom Lane
f us rely on in practice.) MariaDB has a much laxer notion of what compliance to the standard means here, and AFAIK they feel free to add columns that are not in the standard. We do not do that. regards, tom lane

Re: Trigger (or something similar) on table rename?

2018-02-15 Thread Tom Lane
yet. I'm not sure if you could identify a table rename without resorting to writing some C code. regards, tom lane

Re: Remove default privilege from DB

2018-02-16 Thread Tom Lane
initial state of an object typically includes some positive grants doesn't change the fact that there's no such thing as a negative grant. In particular, if there is a GRANT TO PUBLIC, no amount of revoking that privilege from individual users will have any effect, because the public grant is still there. regards, tom lane

Re: Trigger (or something similar) on table rename?

2018-02-16 Thread Tom Lane
y of this sort ... but it's only test code and doesn't necessarily have anybody's blessing as to being a good basis for moving forward. regards, tom lane

Re: Any hope for more specific error message for "value too long..."?

2018-02-16 Thread Tom Lane
onstitute an improvement --- what do you wish it would show you, exactly? In the particular case here, the fact that a varchar length coercion is being invoked isn't even explicit in the query. Good ideas welcome ... regards, tom lane

Re: Any hope for more specific error message for "value too long..."?

2018-02-16 Thread Tom Lane
across a crude POC hack here: https://www.postgresql.org/message-id/21693.1478376...@sss.pgh.pa.us At the time I didn't want to pursue it further because of Andres' pending work on redoing expression execution, but that's landed now. regards, tom lane

Re: Database health check/auditing

2018-02-16 Thread Tom Lane
n order to figure out what your one or two sentences are in response to. Gmail have done their level best to destroy email in general, and mailing lists in particular, as a useful communication medium. Don't help them out by being a jerk about your quoting habits. regards, tom lane

Re: Any hope for more specific error message for "value too long..."?

2018-02-17 Thread Tom Lane
enerically applicable. In principle we could make it work for any error arising during expression evaluation. regards, tom lane

Re: Error when compiling postgresql 9.6.7 with Visual Studio 15.5.6

2018-02-19 Thread Tom Lane
y needs to figure out what's the approved way now to get the locale name out of a _locale_t object. regards, tom lane

Re: Empty ./share/timezone/UTC and failure to set UTC as timezone

2018-02-19 Thread Tom Lane
stgres 127 Feb 19 12:27 Zulu -rw-r--r--. 3 postgres postgres 3545 Feb 19 12:27 posixrules regards, tom lane

Re: Error when compiling postgresql 9.6.7 with Visual Studio 15.5.6

2018-02-19 Thread Tom Lane
next VS update. regards, tom lane

Re: Getting a primitive numeric value from "DatumGetNumeric"?

2018-02-20 Thread Tom Lane
27;select $1[1]' language sql; CREATE FUNCTION regression=# select foo(array[1.1,1.2]); foo - 1.1 (1 row) or to emphasize that it is doing a conversion: regression=# select foo(array[1.1,1.2]::numeric[]); foo - 1.1 (1 row) regards, tom lane

Re: initdb when data/ folder has mount points

2018-02-21 Thread Tom Lane
don't see any advantage there. I don't see any point in making base/ be its own mount point. Once you get rid of those other subdirectories there's not going to be enough "global" storage left to justify its own volume. regards, tom lane

Re: Understanding query planner cpu usage

2018-02-21 Thread Tom Lane
ng tree entirely. But this sure sounds reminiscent of that class of problems. regards, tom lane

Re: initdb when data/ folder has mount points

2018-02-21 Thread Tom Lane
Ron Johnson writes: > On 02/21/2018 06:01 PM, Tom Lane wrote: >> Ron Johnson writes: >>> Apparently, initdb assumes that data/ is one big mount point. However, we >>> have four mount points: >>> /var/lib/pgsql/9.6/data/backup >>> /var/lib/pgsql/9.6

Re: Understanding query planner cpu usage

2018-02-21 Thread Tom Lane
Lucas Fairchild-Madar writes: > On Wed, Feb 21, 2018 at 4:14 PM, Tom Lane wrote: >> If so, this might be some manifestation of a problem we've seen before: >> the planner tries to find out the current live max value of the column >> by scanning the index, and that&#x

Re: Any reason not to show "null input" (strict) column in \df+ output?

2018-02-22 Thread Tom Lane
member-what grounds. But I couldn't find any such discussion in a quick trawl of the archives, so maybe I'm misremembering. The only reasonable counter-argument I can think of now is that it'd make the display Even Wider ... but \df+ long since blew past any reasonable screen width. regards, tom lane

Re: Getting a primitive numeric value from "DatumGetNumeric"?

2018-02-22 Thread Tom Lane
then work with float8 and let the implicit-coercion machinery do the conversion for you. regards, tom lane

Re: Location to specify C compiler option in C extension

2018-02-23 Thread Tom Lane
s.mk; maybe it's an ordering problem? regards, tom lane

Re: extract properties from certificates

2018-02-24 Thread Tom Lane
subpackage. Maybe you didn't install that? regards, tom lane

pg_dumpall SET default_transaction_read_only = off (was Re: == PostgreSQL Weekly News - January 28 2018 ==)

2018-02-25 Thread Tom Lane
Karsten Hilbert writes: > On Mon, Jan 29, 2018 at 03:57:48AM +0100, David Fetter wrote: >> Tom Lane pushed: >> ... This leaves us with no solution for the >> default_transaction_read_only issue that commit 4bd371f6f intended to work >> around, other than "you g

Re: Using FDW to connect to a more recent postgres version?

2024-10-12 Thread Tom Lane
a foreign server that is more recent? Like > pg14 connecting to pg17? I'd expect it to work, but it's not a scenario that we test. regards, tom lane

Re: Changing postgres User

2024-10-14 Thread Tom Lane
thing else using the switch Adrian mentioned --- but that's really mostly cosmetic. It has nothing to do with OS-level privileges. regards, tom lane

Re: Questions about document "Concurrenry control" section

2024-10-11 Thread Tom Lane
KIM-verifying recipient would regard the message as a forgery. regards, tom lane

Re: Error Building Postgres 17.0 from Source

2024-10-04 Thread Tom Lane
Christophe Pettus writes: > On Oct 4, 2024, at 12:05, Tom Lane wrote: >> Yeah, that's what it looks like. I'm a bit confused though because >> 16.x should have failed the same way: building our docs without local >> DTDs has failed for well over a year now [1].

Re: Error Building Postgres 17.0 from Source

2024-10-04 Thread Tom Lane
a bit confused though because 16.x should have failed the same way: building our docs without local DTDs has failed for well over a year now [1]. Perhaps you weren't trying to build the docs before? regards, tom lane [1] https://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=969509c3f

Re: Failing GSSAPI TCP when connecting to server

2024-09-29 Thread Tom Lane
de of Postgres' control --- I don't think that libpq itself has much involvement in the KDC communication. I concur with looking at the Discourse release notes and maybe asking some questions in that community. regards, tom lane

Re: grant connect to all databases

2024-10-05 Thread Tom Lane
uppet recipe is revoking that behind your back, or if you are using some modified version of Postgres with different ideas about default privileges. Looking at psql \l output for the test DB might be informative. regards, tom lane

Re: Repeatable Read Isolation Level "transaction start time"

2024-10-05 Thread Tom Lane
er one wouldn't necessarily please everybody. regards, tom lane

Re: Repeatable Read Isolation Level "transaction start time"

2024-10-05 Thread Tom Lane
ybe we could have some guarantees about what you get when comparing other sessions' xact_start to your own snapshot_timestamp. But I'm not convinced we can really guarantee anything without reading the snapshot_timestamp within the snapshot-collecting critical section, and I'm not for that. regards, tom lane

Re: RESET, NULL and empty-string valued settings and transaction isolation

2024-10-19 Thread Tom Lane
27;s a giant patch with a much smaller patch struggling to get out. But certainly the area needs some nontrivial thought, and I'm not sure that extending the GUC mechanism is a better answer. regards, tom lane [1] https://www.postgresql.org/message-id/flat/CAFj8pRD053CY_N4%3D6SvPe7ke6xPbh%3DK50LUAOwjC3jm8Me9Obg%40mail.gmail.com

Re: explain vs auto_explain

2024-10-19 Thread Tom Lane
artly a matter of not having a protocol spec that would allow the EXPLAIN data to be delivered on a side channel, but mostly a recognition that rewriting applications to capture such data would be painful. regards, tom lane

Re: What are best practices wrt passwords?

2024-10-16 Thread Tom Lane
emory serves. On a Linux box it seems to work for processes owned by yourself even if you're not superuser. regards, tom lane

Re: Permissions for Newly Created User

2024-10-18 Thread Tom Lane
fully as you guard the database contents. regards, tom lane

Re: Timezone: resolve $TZDIR in runtime

2024-10-21 Thread Tom Lane
out > recompilation. I'm pretty down on this idea because it adds complexity, ie ways to break things. If you want a more self-contained installation, you could build it without specifying --with-system-tzdata. regards, tom lane

Re: Timezone: resolve $TZDIR in runtime

2024-10-21 Thread Tom Lane
utilities like date(1). regards, tom lane

Re: Using Expanded Objects other than Arrays from plpgsql

2024-10-20 Thread Tom Lane
Michel Pelletier writes: > On Sun, Oct 20, 2024 at 10:13 AM Tom Lane wrote: >> But it seems like we could get an easy win by adjusting >> plpgsql_exec_function along the lines of >> ... > I tried this change and couldn't get it to work, on the next line: > if

Re: Using Expanded Objects other than Arrays from plpgsql

2024-10-20 Thread Tom Lane
Michel Pelletier writes: > I found this thread from the original path implementation from Tom Lane in > 2015: > https://www.postgresql.org/message-id/E1Ysvgz-s0-DP%40gemulon.postgresql.org >> In this initial implementation, a few heuristics have been hard-wired >> in

Re: Help Resolving Compiler Errors With enable-dtrace Flag

2024-10-20 Thread Tom Lane
src/backend/Makefile ... they don't look that easy to mess up, but maybe. regards, tom lane

Re: Timezone: resolve $TZDIR in runtime

2024-10-21 Thread Tom Lane
Which is how come no other program responds to that environment variable. So if anything, that's precedent for our behavior. regards, tom lane

Re: Using Expanded Objects other than Arrays from plpgsql

2024-10-20 Thread Tom Lane
Michel Pelletier writes: > On Sun, Oct 20, 2024 at 10:13 AM Tom Lane wrote: >> The other problem is that plpgsql only knows how to do such expansion >> for arrays, and it's not obvious how to extend that part. > Perhaps a third member function for ExpandedObjectMethod

Re: Help Resolving Compiler Errors With enable-dtrace Flag

2024-10-20 Thread Tom Lane
n probes.d don't entirely match up with the calls in the source code. You could compare the relevant bits of code between vanilla and modified 16.4 if the problem isn't immediately obvious. regards, tom lane

Re: Support for dates before 4713 BC

2024-10-16 Thread Tom Lane
o a lower-bound date somewhere around 30 BC. If you need to deal with geological or astronomical time spans, then yeah you need a new type --- but presumably you would not feel a need to tie it to Gregorian calendar dates, so the need to reimplement a ton of related logic would not be there.

Re: What are best practices wrt passwords?

2024-10-16 Thread Tom Lane
as usual, but it doesn't look like there's any case where they are more permissive than the Linux rule. I'm still not convinced about whether all *BSD flavors match that, though. regards, tom lane

Re: What are best practices wrt passwords?

2024-10-16 Thread Tom Lane
Achilleas Mantzios writes: > Στις 16/10/24 19:47, ο/η Tom Lane έγραψε: >> I believe it depends on your platform --- some BSDen are pretty >> permissive about this, if memory serves. On a Linux box it seems > As of FreeBSD smadevnu 14.1-RELEASE-p5 , only the user and root c

Re: Regression in Postgres 17?

2024-10-22 Thread Tom Lane
ome bizarre syntax that we couldn't parse without making JSON a partially-reserved word. It still works as a type name, but in this particular syntax where it's not initially clear which names are type names, you lose. Double-quote the argument name, or name it something other than "json". regards, tom lane

Re: Delays between "connection received" and "connection authenticated" because of localhost entries in hba

2024-10-29 Thread Tom Lane
It was awhile ago though. It might be worth searching our mailing list archives. regards, tom lane

Re: Why not do distinct before SetOp

2024-11-04 Thread Tom Lane
NOT DISTINCT FROM predicates not being efficient, so the benefits would be wider than just INTERSECT. regards, tom lane

Re: nth_value out of more than n values returns null

2024-11-04 Thread Tom Lane
;ll get N copies of it, which I assume is not what you want. Better regression=# select f1 from zed order by f1 offset 4 limit 1; f1 5 (1 row) which gets you just the one row and is a lot cheaper too. regards, tom lane

Re: Column name beginning with underscore ("_")?

2024-11-04 Thread Tom Lane
ered but indicate to the reader that the column applies to *my > copy* but are not columns in the original data. Of course, if they decide to name something "_foo", you're going to need to figure out what to do with that. regards, tom lane

Re: Switching to NOINHERIT user triggers #XX000 error

2024-11-05 Thread Tom Lane
Dominique Devienne writes: > On Tue, Nov 5, 2024 at 6:42 PM Tom Lane wrote: >> This is probably a bug, at least to the extent that we don't like >> XX000 errors to be easily reachable, so please let us know what >> you find out. > Finding where the error is thrown

Re: Switching to NOINHERIT user triggers #XX000 error

2024-11-05 Thread Tom Lane
o please let us know what you find out. regards, tom lane

Re: Why not do distinct before SetOp

2024-11-05 Thread Tom Lane
David Rowley writes: > On Tue, 5 Nov 2024 at 04:18, Tom Lane wrote: >> A different idea that occurred to me while looking at this is: >> why have we got all this machinery to add and check a flag >> column, rather than arranging things so that the two input >> relat

Re: Delays between "connection received" and "connection authenticated" because of localhost entries in hba

2024-10-30 Thread Tom Lane
regards, tom lane

Re: Setting "ucs_basic" as the default database collation

2024-10-27 Thread Tom Lane
emplate0; CREATE DATABASE or regression=# create database db2 with encoding = 'utf8' icu_locale = 'en-US-x-icu' locale_provider = icu template = template0; CREATE DATABASE or regression=# create database db3 with encoding = 'utf8' locale = 'POSIX' template = template0; CREATE DATABASE regards, tom lane

Re: Fwd: Fwd: Postgres attach partition: AccessExclusive lock set on different tables depending on how attaching is performed

2024-11-10 Thread Tom Lane
t be what Alvaro was muttering about the other day: redesign FKs for partitioned tables so that we do not have to change the set of triggers when attaching/detaching. regards, tom lane

Re: Customize psql prompt to show current_role

2024-09-23 Thread Tom Lane
current_user. Worse than that: what it reports is libpq's PQuser(), that is the name that was used to log in with. But if what you want is the session_user, psql prompts already have %n for that. regards, tom lane

Re: Customize psql prompt to show current_role

2024-09-23 Thread Tom Lane
il.com At the time I didn't like the idea too much, but now that we've seen a second independent request, maybe our opinion of its value should go up a notch. regards, tom lane

Re: Repeatable Read Isolation Level "transaction start time"

2024-09-25 Thread Tom Lane
d that hugely compelling, because there's always going to be some skew between the time we read the clock for the timestamp and the time we obtain the snapshot. Admittedly, that would normally not be a very long interval if BEGIN did both things ... but on a busy system you could lose the CPU for awhile in between. regards, tom lane

Re: Issues with PostgreSQL Source Code Installation

2024-09-24 Thread Tom Lane
orting failures like this. It looks to me like there is something wrong with your libicu installation --- perhaps headers out of sync with shared library? regards, tom lane

Re: Repeatable Read Isolation Level "transaction start time"

2024-09-24 Thread Tom Lane
s is important in some scenarios. regards, tom lane

Re: Regarding use of single column as primary key on partitioned table

2024-09-27 Thread Tom Lane
in the first place. If that's what you want, don't partition your table. regards, tom lane

Re: Request for Insights on ID Column Migration Approach

2024-09-27 Thread Tom Lane
concurrently, this needn't involve much downtime. regards, tom lane

Re: Need assistance in converting subqueries to joins

2024-09-19 Thread Tom Lane
lying table engine, meaning that what we know about performance may not be terribly relevant. regards, tom lane

Re: CREATE DATABASE command concurrency

2024-09-18 Thread Tom Lane
a race condition it might look more like "duplicate key value violates unique constraint". In the end we rely on the system catalogs' unique indexes to detect and prevent race conditions of this sort. regards, tom lane

Re: Why no pg_has_role(..., 'ADMIN')?

2024-09-20 Thread Tom Lane
#x27;USAGE WITH ADMIN OPTION' seems a reasonable choice. regards, tom lane

Re: Why no pg_has_role(..., 'ADMIN')?

2024-09-20 Thread Tom Lane
I'm now inclined to add wording within the pg_has_role entry, along the lines of WITH ADMIN OPTION or WITH GRANT OPTION can be added to any of these privilege types to test whether ADMIN privilege is held (all six spellings test the same thing). regards, tom lane

Re: IO related waits

2024-09-20 Thread Tom Lane
ently across transactions (eg, sort by primary key before inserting)? regards, tom lane

Re: Why no pg_has_role(..., 'ADMIN')?

2024-09-20 Thread Tom Lane
Robert Haas writes: > On Fri, Sep 20, 2024 at 2:34 PM Tom Lane wrote: >> I'm now inclined to add wording within the pg_has_role entry, along >> the lines of >> >> WITH ADMIN OPTION or WITH GRANT OPTION can be added to any of >> these privilege types t

Re: How to handle "could not find function xml_is_well_formed" when restoring database in Version 17

2024-10-01 Thread Tom Lane
u ought to think about while you're at it. If there are any other old-style extensions in there, better fix them up. regards, tom lane

Re: Reading execution plan - first row time vs last row time

2024-10-01 Thread Tom Lane
LE AS, that I/O would be extra. regards, tom lane

Re: glibc updarte 2.31 to 2.38

2024-09-19 Thread Tom Lane
able to reindex indexes on string columns. regards, tom lane

Re: Repeatable Read Isolation Level "transaction start time"

2024-09-25 Thread Tom Lane
. If it says SELECT, it gets a snapshot. regards, tom lane

Re: ERROR wrong varnullingrels (b 3) (expected (b)) with LEFT JOIN LATERAL and CTE

2024-11-28 Thread Tom Lane
I wrote: > Thanks for the test case! A quick "git bisect" says I broke it at > cb8e50a4a09fe541e32cd54ea90a97f2924121a1 is the first bad commit > commit cb8e50a4a09fe541e32cd54ea90a97f2924121a1 > Author: Tom Lane > Date: Fri Aug 30 12:42:12 2024 -0400 > Avoid

Re: PostgreSQL 15.10 update corrective action for ATTACH PARTITION/DETACH PARTITION

2024-11-27 Thread Tom Lane
Paul Foerster writes: > On 26 Nov 2024, at 22:25, Tom Lane wrote: >> I'm suspicious that our repair recipe might not have accounted >> for self-reference FKs fully, but that's just a gut feeling at >> this point. > Of course, it contains no secret da

Re: ERROR wrong varnullingrels (b 3) (expected (b)) with LEFT JOIN LATERAL and CTE

2024-11-28 Thread Tom Lane
g/wiki/Guide_to_reporting_problems regards, tom lane

Re: ERROR wrong varnullingrels (b 3) (expected (b)) with LEFT JOIN LATERAL and CTE

2024-11-28 Thread Tom Lane
ad commit commit cb8e50a4a09fe541e32cd54ea90a97f2924121a1 Author: Tom Lane Date: Fri Aug 30 12:42:12 2024 -0400 Avoid inserting PlaceHolderVars in cases where pre-v16 PG did not. Apparently that change was less safe than I thought. Looking ... regards, tom lane

Re: Find out the version of the server

2024-11-29 Thread Tom Lane
d 7.0 (whenever we introduced the version-3 wire protocol). We don't routinely test it against anything older than 9.2, but I tried current psql against 8.2 (the oldest functional server I have on this machine) and it basically worked. regards, tom lane

Re: A table lock inside a transaction depends on query protocol being used?

2024-11-20 Thread Tom Lane
error message implies that something is still holding a reference count on "a"'s relcache entry, and it's hard to see what that could be except a still-open Portal for the SELECT. regards, tom lane

Re: PostgreSQL 15.9 Update: Partitioned tables with foreign key constraints

2024-11-19 Thread Tom Lane
onstraint. > The release notes say nothing about when to fix that using the generated add > or drop statements. Generally speaking, our release notes are addressed to someone who's already installed the update (or a later one). regards, tom lane

Re: Why plpython functions increase transaction counter much more then plpgsql functions?

2024-11-08 Thread Tom Lane
out it? Batch the DB updates, perhaps? > What's interesting it happens only if the function called by plpyhon makes > changes to DB. Totally unsurprising. XIDs are acquired only when the current transaction or subtransaction first needs to change the DB. regards, tom lane

Re: Getting error 42P02, despite query parameter being sent

2024-11-16 Thread Tom Lane
design for what should happen and a patch implementing that, we've just left it at the status quo, which is that Params are only available to the DML statements Achilleas mentioned. regards, tom lane

Re: PostgreSQL 15.10 update corrective action for ATTACH PARTITION/DETACH PARTITION

2024-11-26 Thread Tom Lane
that matter also for p_ci_pipelines? Did the FK used to reference the whole partitioned table, or just this partition? I'm suspicious that our repair recipe might not have accounted for self-reference FKs fully, but that's just a gut feeling at this point. regards, tom lane

Re: Errors when restoring backup created by pg_dumpall

2024-11-30 Thread Tom Lane
work afoot to fix that [1], but it's not committed yet let alone in any shipping version. Nonetheless, your best bet for fixing this might be to install the earthdistance 1.2 files from the latest patchset in that thread. regards, tom lane [1] https://www.postg

<    23   24   25   26   27   28   29   30   >