Re: "PANIC: could not open critical system index 2662" - twice

2023-05-08 Thread Tom Lane
ems to think it's a problem with aborting a DROP DATABASE. Adding more data might serve to make the window wider, perhaps. regards, tom lane

Re: [Beginner question]How to solve multiple definition of `yylval'?

2023-05-11 Thread Tom Lane
on of yylval; don't add one yourself. BTW, this isn't right: #define YYSTPYE string first because you misspelled YYSTYPE, and second because you evidently want yylval to be double not a string. regards, tom lane

Re: Adding SHOW CREATE TABLE

2023-05-12 Thread Tom Lane
it to happen. People have already done that. (Searching the mailing list archives might be edifying.) regards, tom lane

Re: stop

2023-05-14 Thread Tom Lane
appears in the headers of every mail sent out by the postgresql mail list servers. That link is unique to your address, so you won't need any username or password to make the request take effect. regards, tom lane

Re: Postgres Incompatibility

2023-05-17 Thread Tom Lane
mply cannot expect that code that looks at system catalogs is never going to need to be touched when doing a major version upgrade. regards, tom lane

Re: pg_stats.avg_width

2023-05-17 Thread Tom Lane
e the TOAST pointer not the detoasted value that would be passed through joins, sorts, hashes, etc. And we really only care about how much space would be needed for things like sort temp files. regards, tom lane

Re: JSONB operator unanticipated behaviour

2023-05-18 Thread Tom Lane
e JSON operator table didn't link to it before v13. (I agree that the "top level" bit was just wrong, but it's gone.) regards, tom lane

Re: JSONB operator unanticipated behaviour

2023-05-18 Thread Tom Lane
Adrian Klaver writes: > On 5/18/23 08:46, Tom Lane wrote: >> You seem to be reading some fairly old version of the documentation. >> The extended definition that Adrian mentions has been there for >> awhile, but the JSON operator table didn't link to it before v13. >&

Re: Unrecognized Node Type Warning

2023-05-18 Thread Tom Lane
issed out support for that type. But the only core-PG suspect is pg_stat_statements, and I can see that it does know that node type. regards, tom lane

Re: Would PostgreSQL 16 native transparent data encryption support database level encryption?

2023-05-18 Thread Tom Lane
ith key-per-database is what are you going to do with the shared catalogs? It's a lot simpler, and probably better performing, to use one key per cluster. regards, tom lane

Re: Unrecognized Node Type Warning

2023-05-18 Thread Tom Lane
you need to take it up with whoever provides "azure". regards, tom lane

Re: 15 pg_upgrade with -j

2023-05-22 Thread Tom Lane
could use rethinking, not sure. regards, tom lane

Re: How to speed up product code and subcode match

2023-05-23 Thread Tom Lane
ition (or ANDed conditions), you're in for a world of hurt. regards, tom lane

Re: confused by int2vector typdelim

2023-05-24 Thread Tom Lane
3 4 5}'::int2vector[]; int2vector - {"1 2","3 4 5"} (1 row) regards, tom lane

Re: A question about generate_series

2023-05-28 Thread Tom Lane
w. When I do this I see ... 19 20 21 --More-- Since you're not getting a prompt but just the subsequent \timing output, it seems that the rest of the output went into the bit bucket, which psql would certainly never do on its own. But a malfunctioning pager might act that way. regards, tom lane

Re: syntax pb

2023-05-30 Thread Tom Lane
the INSERT, so we can resolve the NULL as being of type int. But use of DISTINCT requires resolving the type of the value (else how do you know what's distinct from what?) and by default we'll resolve to text, and then that doesn't match what the INSERT needs. regards, tom lane

Re: Hash Index on Partitioned Table

2023-05-31 Thread Tom Lane
t have to drill down to the point of counting how many files in the database's directory, if the individual indexes aren't showing up as committed catalog entries yet. regards, tom lane

Re: Help needed to understand query planner regression with incremental sort

2023-05-31 Thread Tom Lane
looks like you already have such an index, ie a GIN index on the desc_tsv column, although I don't trust that your schema attachment is actually accurate because if it is then you have a bunch of duplicative indexes. You might try dropping the other indexes to see if you can coerce the planner into using that one, and then seeing what the cost estimate is. regards, tom lane

Re: Dynamic creation of list partitions in highly concurrent write environment

2023-06-01 Thread Tom Lane
itions of the routes table, which will not be good for performance. regards, tom lane

Re: [Beginner Question]A question about yacc & lex

2023-06-02 Thread Tom Lane
or many possible input characters, notably spaces. I seem to recall that the default action in such cases is to print the character on stdout. The grammar lacks any way to deal with any input after the first newline. Anything except EOF will draw a syntax error. regards, tom lane

Re: Reproducing incorrect order with order by in a subquery

2023-06-13 Thread Tom Lane
ply DISTINCT or some other non-trivial processing in the upper query. regards, tom lane

Re: Exclusion constraint with negated operator?

2023-06-13 Thread Tom Lane
;" is not. It's not impossible in principle for "<>" to be an index operator, but the set of cases where indexing on such a condition would beat a seqscan is likely to be uselessly small. By the same token, EXCLUDE constraints using such a condition would be unpleasantly inefficient. regards, tom lane

Re: Is there a way make the lex program match multiple line?

2023-06-17 Thread Tom Lane
n is that "." *does* match "'", so it's ambiguous what will happen with quotes. You probably need something closer to [']([^']|\n)['] regards, tom lane

Re: Catalog for LISTEN'ed to notification channels?

2023-06-22 Thread Tom Lane
ons, because that state is only backend-local. regards, tom lane

Re: ECPG Semantic Analysis

2023-06-23 Thread Tom Lane
like it'd take an enormous amount of new C code that would then have to be kept in sync (by hand) with the backend parser. Testing such a thing seems like a big time sink as well. I seriously doubt that we'd be willing to take on such a maintenance burden. regards, tom lane

Re: Why can't lseek the STDIN_FILENO?

2023-06-23 Thread Tom Lane
;? Probably because a tty input device is not seekable. regards, tom lane

Re: bug or lacking doc hint

2023-06-25 Thread Tom Lane
product row. We can do better than that if the OR'd conditions are each amenable to an index scan on one of the tables: then it can be a nestloop with a bitmap-OR'd inner index scan. I thought the upthread advice to convert the substr() condition into something that could be indexed was on

Re: When will trusted PL/Python be supported?

2023-06-27 Thread Tom Lane
041008v50104fd8p6181d5ddce85a6a%40mail.gmail.com but it doesn't seem to have gone anywhere. regards, tom lane

Re: LibPQ: PQresultMemorySize as proxy to transfered bytes

2023-06-28 Thread Tom Lane
A larger result set should show less percentage error. regards, tom lane

Re: LibPQ: PQresultMemorySize as proxy to transfered bytes

2023-06-28 Thread Tom Lane
re testing > with very small result sets (say a couple hundred KB) Sigh, obviously I meant a couple hundred *bytes* there. -ENOCAFFEINE regards, tom lane

Re: function to_char(unknown) is not unique at character 8

2023-07-06 Thread Tom Lane
, it's a literal of unknown type, with the actual type to be inferred from context. There is a small preference for resolving such a thing as being of text type, but only a small one. The rules are exactly the same as for an undecorated NULL constant. regards, tom lane

Re: now() literal in pg_input_is_valid

2023-07-09 Thread Tom Lane
jian he writes: > should I expect > select pg_input_is_valid($$[now(), infinity)$$,'tstzrange'); > returns true? No. "now()" is not a literal, it's a function call. regards, tom lane

Re: what causes new temp schemas to be created

2023-07-10 Thread Tom Lane
an existing temp schema in the slot assigned to the current backend. regards, tom lane

Re: Problematic enforcement of "ERROR: functions in index predicate must be marked IMMUTABLE"

2023-07-10 Thread Tom Lane
, volatility markings are a promise by the user to the system, not vice versa. If you break your promise, you get to keep both pieces of whatever trouble ensues. regards, tom lane

Re: error in the example given for numeric data types

2023-07-15 Thread Tom Lane
and prior versions. Observe also the v15 release notes: https://www.postgresql.org/docs/15/release-15.html E.4.3.4. Data Types Allow the scale of a numeric value to be negative, or greater than its precision (Dean Rasheed, Tom Lane) This allows rounding of values to the l

Re: pg_restore mostly idle on restoring a large number of tables

2023-07-15 Thread Tom Lane
all those tables in one transaction. regards, tom lane [1] https://www.postgresql.org/message-id/3612876.1689443232%40sss.pgh.pa.us

Re: Nu-B here

2023-07-19 Thread Tom Lane
fix for this error report in the upcoming v16, but psql commands that involve local filesystem access will still not act very nicely if psql can't read your directory. regards, tom lane

Re: My 1st JDBC and PostgreSQL

2023-07-19 Thread Tom Lane
me other database to connect to, with no certainty of success; and (b) even if it manages to connect to the server, there's no certainty that you'd have permissions to create a new database. So I don't believe any JDBC driver would even try. regards, tom lane

Re: aclitem binary encoding

2023-07-21 Thread Tom Lane
t, a binary representation probably wouldn't be terribly useful, as it'd contain role OIDs that wouldn't reliably transport from one system to the next, and also privilege bitmasks that we sometimes redefine. regards, tom lane

Re: invalid value for parameter "default_text_search_config": "public.pg"

2023-07-21 Thread Tom Lane
ngs your main session is using. So what remains to be explained is why you aren't seeing the same complaint when starting a fresh session. It might be useful to look at the output of show default_text_search_config; and select * from pg_file_settings where name = 'default_text_search_config'; regards, tom lane

Re: invalid value for parameter "default_text_search_config": "public.pg"

2023-07-21 Thread Tom Lane
t should always exist?) "public.pg" is certainly not a standard (as in built-in) text search configuration name. Maybe that value was installed by some bit of software that failed to install the configuration to go with it, or only put the configuration into one database not everywhere in your installation? regards, tom lane

Re: Grant all privileges to user on a database

2023-07-24 Thread Tom Lane
ma (for security reasons). You might see if a newer drupal release is available. If not, the best bet would likely be GRANT ALL ON SCHEMA public TO public; If you run into more problems, a more drastic answer might be to downgrade to whatever drupal considers a supported release of Postgres. regards, tom lane

Re: Compile static postgres.lib for postgres 15.3 on Windows

2023-07-28 Thread Tom Lane
t's not worth maintaining a separate libpq-only build path. regards, tom lane

Re: AW: Compile static postgres.lib for postgres 15.3 on Windows

2023-07-28 Thread Tom Lane
e suggests that you want to add "--with-pgport" => 5433 (with the quotes, probably). regards, tom lane

Re: error: connection to server on socket...

2023-08-01 Thread Tom Lane
achine. BTW, you can ignore the "could not change directory" warning. That's expected when starting "sudo -u postgres psql" in a directory that the postgres user can't read. regards, tom lane

Re: /usr/local/pgsql is empty after successful of make

2023-08-06 Thread Tom Lane
Aramaki Zyake writes: > What should I do to move built artifacts into /usr/local/pgsql? "make install", or possibly "sudo make install" if you'd rather the installed files be root-owned. https://www.postgresql.org/docs/current/install-short.html regards, tom lane

Re: Fatal Error : Invalid Memory alloc request size 1236252631

2023-08-14 Thread Tom Lane
regards, tom lane

Re: AW: AW: Cast INTEGER to BIT confusion

2023-08-17 Thread Tom Lane
sting on bug-compatibility with non-SQL-compliant details of some other DBMS, and you can't adjust the application at all, there is going to be some new showstopper problem biting you every day. regards, tom lane [1] https://www.postgresql.org/docs/current/catalog-pg-cast.html

Re: case and accent insensitive search under Python ?

2023-08-19 Thread Tom Lane
The text search functionality is already case-insensitive, but not accent-insensitive (at least in the common built-in configurations). To make it accent-insensitive, you can set up a custom configuration using the "unaccent" module. See https://www.postgresql.org/docs/current/unaccent.h

Re: The same prepared query yield "-1" the first six times and then "-1.0"

2023-08-21 Thread Tom Lane
the JDBC driver has its own notion of custom vs generic execution, so maybe the issue is around there somewhere. regards, tom lane

Re: Oracle FDW version

2023-08-22 Thread Tom Lane
in-support oracle_fdw version. regards, tom lane [1] https://www.postgresql.org/support/versioning/

Re: [EXTERNAL] Re: Oracle FDW version

2023-08-22 Thread Tom Lane
Please speak to Greenplum customer support, rather than expecting the wider Postgres community to help you for free with a code base that we don't even know. regards, tom lane

Re: Read only user permission

2023-08-23 Thread Tom Lane
he access to readonly to make sure it has the read > access to NEW tables created by readwrite user? The readwrite user (not the admin) would need to issue ALTER DEFAULT PRIVILEGES granting that. regards, tom lane

Re: Materialized view refreshing problem

2023-08-24 Thread Tom Lane
happening, to see what may be waiting on what? regards, tom lane

Re: Materialized view refreshing problem

2023-08-24 Thread Tom Lane
dy else's lock. But you need to look to see which session is holding a lock on mvw_cbsd_status_grants_lessinfo_active_softmarker and what it's doing. regards, tom lane

Re: Restoring default privileges on objects

2023-08-29 Thread Tom Lane
leges, which is then modified per whatever command you are giving. After that the privileges will always be explicit. There's been occasional discussion of changing this behavior, but it'd take work and it'd likely add about as much surprise as it removes. People have been used to this quirk for a long time. regards, tom lane

Re: Restoring default privileges on objects

2023-08-29 Thread Tom Lane
ll" for this might be a reasonable thing to do too. I'm actually a bit surprised that that doesn't work already. regards, tom lane

Re: PG FDW query fails, works local, same credentials

2023-08-30 Thread Tom Lane
ch path assumptions. postgres_fdw runs remote queries with a very minimal search_path setting, so that unqualified references to non-built-in objects are likely to fail. regards, tom lane

Re: createuser unexpectedly creates superuser with createdb and createrole

2023-09-03 Thread Tom Lane
Erik Wienhold writes: > Anyway, I prepared a patch for the docs. I think the last hunk of this is plenty sufficient, and the earlier ones just add noise. regards, tom lane

Re: rollback to savepoint issue

2023-09-04 Thread Tom Lane
blocks, functions, or procedures. If you're going to execute the same code over and over within a session, a function or procedure will probably be a better choice than re-issuing identical DO blocks. regards, tom lane

Re: rollback to savepoint issue

2023-09-05 Thread Tom Lane
ying that SAVEPOINT is unsupported. ROLLBACK in plpgsql is a different command with different syntax options than the core grammar has. So this is a matter of when syntax errors are detected vs. when semantic errors are detected. regards, tom lane

Re: postgreSQL UPPER Method is converting the character "µ" into "M"

2023-09-06 Thread Tom Lane
ke your own, or try to persuade the glibc maintainers that they are wrong. regards, tom lane

Re: ERROR: stack depth limit exceeded

2023-09-07 Thread Tom Lane
ovide a self-contained example. The people who might be able to fix this are too busy to guess about what you are seeing. regards, tom lane

Re: Huge input lookup exception when trying to create the index for XML data type column in postgreSQL

2023-09-07 Thread Tom Lane
either. Is that the *exact* spelling of the message? Are you sure it's not coming from your client-side code? regards, tom lane

Re: Huge input lookup exception when trying to create the index for XML data type column in postgreSQL

2023-09-07 Thread Tom Lane
Erik Wienhold writes: > On 07/09/2023 21:09 CEST Tom Lane wrote: >> There is no such string anywhere in the Postgres source code; >> furthermore, if someone tried to add such an error, it'd get rejected >> (I hope) as not conforming to our style guidelines. I thought

Re: ERROR: stack depth limit exceeded

2023-09-08 Thread Tom Lane
gzh writes: > In the Release Notes for PostgreSQL 12.14, we saw the following change: > https://www.postgresql.org/docs/release/12.14/ >> Add recursion and looping defenses in subquery pullup (Tom Lane) >> A contrived query can result in deep recursion and unreasonable amounts

Re: pgsql --echo-errors --quiet and setval

2023-09-10 Thread Tom Lane
ing that you really need to see the results of. I'm not sure whether it'd be profitable to try to build that behavior into the scripts themselves. One problem is that "/dev/null" doesn't have that name on Windows, so it's hard to see how to invoke the behavior in a platform-agnostic fashion. regards, tom lane

Re: Upgrade problem

2023-09-11 Thread Tom Lane
object file: No such file or directory > no data was returned by command ""/mga8/usr/bin/postgres" -V" You might get useful info from "ldd /mga8/usr/bin/postgres" about where that executable is looking for libssl. regards, tom lane

Re: Upgrade problem

2023-09-11 Thread Tom Lane
only shows it looking in /lib64, maybe you need a symlink there? Alternatively, try ldd on the libssl.so.1.1 file itself, to see if it has unresolved dependencies. I'm not totally sure, but I think indirect unresolved dependencies might display this way. regards, tom lane

Re: Can two-phase commit support LISTEN, UNLISTEN, and NOTIFY?

2023-09-16 Thread Tom Lane
roblem that we've created a way for COMMIT PREPARED to fail, which ideally it should never do. So I think there are indeed semantic issues, it's not entirely a matter of "nobody got around to it". regards, tom lane

Re: Connection not allowed because of an error 'Not in pg_hba.conf'

2023-09-18 Thread Tom Lane
s that that connection wasn't ssl-encrypted). You could adjust your connection parameters on the client side to prevent the useless non-SSL connection attempt. But of course the real question is how come the password authentication failed in the first attempt. Looking into the server's log might yield a clue. regards, tom lane

Re: whether I can add a new encoding?

2023-09-21 Thread Tom Lane
oding in the pg_enc enum has seemed like a mostly hypothetical problem because of that restriction. regards, tom lane

Re: How to fork pg_dump or psql w/o leaking secrets?

2023-09-22 Thread Tom Lane
ocess's environment variables can readily be inspected by other processes. You should check your platform carefully before assuming that PGPASSWORD is a safe way to pass down a secret. regards, tom lane

Re: debugger from superuser only.... why?

2023-09-25 Thread Tom Lane
t care to open. regards, tom lane

Re: Ad hoc SETOF type definition?

2023-09-26 Thread Tom Lane
Ron writes: > Is there a way to define the SETOF record on the fly, like you do with > RETURNS TABLE (f1 type1, f2 type2)? Doesn't RETURNS TABLE meet the need already? regards, tom lane

Re: Ad hoc SETOF type definition?

2023-09-26 Thread Tom Lane
Ron writes: > On 9/26/23 12:46, Tom Lane wrote: >> Ron writes: >>> Is there a way to define the SETOF record on the fly, like you do with >>> RETURNS TABLE (f1 type1, f2 type2)? >> Doesn't RETURNS TABLE meet the need already? > That rationale means th

Re: debugger from superuser only.... why?

2023-09-27 Thread Tom Lane
Alexander Petrossian writes: > 25 сент. 2023 г., в 17:28, Tom Lane написал(а): >> you’d have a big problem with being able to change the behavior of >> security-definer functions. > Could you please elaborate on this, Tom? pldebugger allows you to change the contents of

Re: valid casts to anyarray

2023-09-27 Thread Tom Lane
#x27;t know how to do a lot of operations on it. Type "point" and related animals are sort of a poor man's array, which is supported for basic subscripting operations, but it's not generic enough to be reasonable to consider as an ANYARRAY. regards, tom lane

Re: cache lookup failed for function 0

2023-09-29 Thread Tom Lane
to ENCODING 'ISO-8859-1' makes me wonder what encoding conversion is being performed. regards, tom lane

Re: cache lookup failed for function 0

2023-09-30 Thread Tom Lane
n. It's hard to get much further than that with the info that we have. regards, tom lane

Re: cache lookup failed for function 0

2023-09-30 Thread Tom Lane
cal contents, I think there's a DB comparison tool that's been recommended around here.) regards, tom lane

Re: Gradual migration from integer to bigint?

2023-09-30 Thread Tom Lane
omation for the existing conversion processes involving table rewrites. That's possible perhaps, but it doesn't really sound compelling enough to justify a lot of work. regards, tom lane

Re: cache lookup failed for function 0

2023-10-01 Thread Tom Lane
ed to find another way to transcode the data that was in that encoding. Probably, running your database in UTF8 is the best choice -- we can convert most anything to that. regards, tom lane

Re: How to investigate deadlocks

2023-10-02 Thread Tom Lane
n do to make their row locking orders be reliably consistent. Or see if you can avoid needing exclusive row locks in the first place. regards, tom lane

Re: specifying multiple options in URI psql behaviour?

2023-10-02 Thread Tom Lane
ng as I put quotes around the URL.) regards, tom lane

Re: Trigger functions and parallelism

2023-10-02 Thread Tom Lane
why the docs are silent on the point. regards, tom lane

Re: Strategies for converting UTC data to local windows for arbitrary resolutions and timezones

2023-10-04 Thread Tom Lane
triggers restoring the previous zone when the function exits; simpler and probably faster than coding the save/restore explicitly. Side note: whether this is really "immutable" is a matter for debate, since time zone definitions tend to change over time. But we chose to mark the new 4-argument version that way, so you might as well do so too. regards, tom lane

Re: I'm using both window and agg, is this expected sorting behavior?

2023-10-04 Thread Tom Lane
d an ORDER BY for the overall query result, the implementation is entitled to return the rows in any order it pleases. Ours happens to sort by the window ordering before computing the window functions, so that's what you get. In this case anyway --- you shouldn't rely on that.

Re: Strategies for converting UTC data to local windows for arbitrary resolutions and timezones

2023-10-04 Thread Tom Lane
setting seems less confusing. > Does that mean I could run this > outside this context of a function, and expect the setting to go back to > UTC on a rollback? An actual rollback would undo the effects of set_config, yes. You only need this function wrapper to ensure that subsequent operations in the same transaction don't see the setting change. regards, tom lane

Re: Strategies for converting UTC data to local windows for arbitrary resolutions and timezones

2023-10-04 Thread Tom Lane
keep in mind is that that might have different behavior in terms of the evaluation of the arguments to the function, ie which timezone setting is your input parsed according to. regards, tom lane

Re: Strategies for converting UTC data to local windows for arbitrary resolutions and timezones

2023-10-04 Thread Tom Lane
his doesn't affect you. What I was thinking about was that select generate_series('2023-10-04 13:30', ...) is going to mean different things depending on the zone setting that prevails when that constant is parsed. regards, tom lane

Re: why generated columsn cannot be used in COPY TO?

2023-10-06 Thread Tom Lane
is, but it was at least thought about. I do agree with it as far as the default column list goes, but maybe we could allow explicit selection of these columns in COPY TO. regards, tom lane

Re: why generated columsn cannot be used in COPY TO?

2023-10-06 Thread Tom Lane
don't really see any backwards-compatibility problem with allowing cases that had been errors, though. regards, tom lane

Re: psql trying twice to connect to local DB

2023-10-07 Thread Tom Lane
ke the extra log entries, there's a command-line switch that forces psql to prompt for password before connecting the first time. Of course, that might result in prompting for a password that's not really needed. regards, tom lane

Re: Proposal to Compile a 256-Byte Identifier Length Version Alongside the Current 64-Byte Version

2023-10-10 Thread Tom Lane
his is difficult to do without breaking mountains of backend code, but there's been some discussions about ways to accomplish that. The most recent thread I could find is https://www.postgresql.org/message-id/flat/CALSd-crdmj9PGdvdioU%3Da5W7P%3DTgNmEB2QP9wiF6DTUbBuMXrQ%40mail.gmail.com regards, tom lane

Re: Proposal to Compile a 256-Byte Identifier Length Version Alongside the Current 64-Byte Version

2023-10-10 Thread Tom Lane
duce, not increase, the set of strings we'll call identifiers. regards, tom lane

Re: Subject: FATAL: cache lookup failed for relation 1247

2023-10-11 Thread Tom Lane
r helpful info at https://wiki.postgresql.org/wiki/Corruption regards, tom lane

Re: Assitance needed for the resolution of memory leak

2023-10-11 Thread Tom Lane
t follow its basic control flow. Indent according to the brace structure, and your life will get easier. regards, tom lane

Re: List users privileges for whole cluster/all databases in the cluster

2023-10-12 Thread Tom Lane
eges for the user in all databases in the cluster using one view, > select. This is not possible, because a session can only see the catalogs for its own database (plus the shared catalogs, but those only describe shared objects). regards, tom lane

Re: JSON fields with backslashes

2023-10-13 Thread Tom Lane
slashes in the default format. You could use CSV format, perhaps, but that has its own quoting rules that also mean that what comes out is not going to be json-and-nothing-but. See "File Formats" here: https://www.postgresql.org/docs/current/sql-copy.html regards, tom lane

<    14   15   16   17   18   19   20   21   22   23   >