Re: psql crash on 9.6.16

2020-03-16 Thread Tom Lane
sually type? Sadly, the visible evidence here doesn't tell us much of anything about what provoked the crash :-( FWIW, there's a pretty good chance that this isn't psql's fault per se, but a libreadline bug. You might check to see if you can get a newer readline version inst

Re: Order by and timestamp

2020-03-16 Thread Tom Lane
enly wondering if it could be explained by misinterpreting the date field order (month-day vs day-month). Check the datestyle settings on both machines. regards, tom lane

Re: unexpected chunk number 2 (expected 0) for toast value ... in pg_toast_18536

2020-03-16 Thread Tom Lane
Andres Freund writes: > On 2020-03-16 12:44:53 -0700, Andres Freund wrote: >> On 2020-03-15 20:11:18 -0400, Tom Lane wrote: >>> I wonder if we should change it to allow that when >>> allow_system_table_mods is true? This isn't the first time we've >>>

Re: Mixed Locales and Upgrading

2020-03-17 Thread Tom Lane
Don Seiler writes: > On Mon, Mar 16, 2020 at 10:28 AM Tom Lane wrote: >> I don't think you should use pg_upgrade here at all. A dump/restore >> is really the only way to make sure that you have validly encoded data. > That is what I thought, and probably not what the

Re: Order by and timestamp SOLVED

2020-03-17 Thread Tom Lane
psql's FETCH_COUNT option active in one configuration and not the other, and if so whether that could explain anything. regards, tom lane

Re: Mixed Locales and Upgrading

2020-03-17 Thread Tom Lane
Don Seiler writes: > On Tue, Mar 17, 2020 at 8:56 AM Tom Lane wrote: >> Yikes. Well, if there aren't obvious operational problems, it might be >> that the data is actually UTF8-clean, or almost entirely so. Maybe you >> could look at the problem as being one of va

Re: Temporary tablespaces on a RAM disk

2020-03-17 Thread Tom Lane
wiped. People have asked about this before, so maybe it'd be an idea to make an explicit concept of a temp tablespace that only accepts temp tables, and do whatever is needful to make that robust. But I've not heard of any work towards that. regards, tom lane

Re: Temporary tablespaces on a RAM disk

2020-03-17 Thread Tom Lane
g reboot, but it's not an officially supported or tested scenario. regards, tom lane

Re: SET LOCAL doesn't become undefined after transaction is commited

2020-03-18 Thread Tom Lane
*is* meant for user variables: https://www.postgresql.org/message-id/flat/cafj8prdy+m9ooxfo10r7j0pakccaum-tweatrdsrslgmb1v...@mail.gmail.com I haven't checked on the state of that lately, but you might read up on it and help review/test it, or try to push the definition in the direction you need if it doesn't seem like quite the right thing. regards, tom lane

Re: Passwordcheck configuration

2020-03-19 Thread Tom Lane
nd to. (I seem to recall some recent discussion about deprecating/removing passwordcheck altogether, but I can't find it right now.) regards, tom lane

Re: Could postgres12 support millions of sequences? (like 10 million)

2020-03-19 Thread Tom Lane
rkload were actively hitting a lot of them concurrently. It would work, for some value of "work", but it wouldn't perform very well. Also, as multiple people mentioned already, this still wouldn't guarantee gap-free sequences of ID values. regards, tom lane

Re: Explain says 8 workers planned, only 1 executed

2020-03-21 Thread Tom Lane
but it's not something we'd be likely to back-patch into existing releases. regards, tom lane [1] https://www.postgresql.org/message-id/1741.1584847383%40sss.pgh.pa.us

Re: PostgreSQL 13: native JavaScript Procedural Language support ?

2020-03-25 Thread Tom Lane
accident.) Even if we did that, it would not automatically translate to downstream packagers enabling the feature; they might not want the additional dependencies. So the right thing for you to do is to lobby Heroku to include PLV8 in their offering. You'd have to convince them to support it

Re: Issue with Postgres process startup after instance restart

2020-03-27 Thread Tom Lane
ting your PG server start script to make sure the mounted file system is present before you allow the server to start. regards, tom lane

Re: \COPY to accept non UTF-8 chars in CHAR columns

2020-03-27 Thread Tom Lane
data is in, you could use SQL_ASCII as the database "encoding" and thereby disable all UTF8-specific behavior. Otherwise, maybe this conversion is a good time to clean up the mess? regards, tom lane

Re: could not determine encoding for locale "et_EE.UTF-8": codeset is "CPUTF-8" in pg_restore

2020-03-28 Thread Tom Lane
he closest Windows locale match, and then restore its contents without using --create. (I do agree that that message isn't the most helpful thing. It looks like chklocale.c is overoptimistically assuming that what it's handed is valid, even if GetLocaleInfoEx says it isn't.) regards, tom lane

Re: could not determine encoding for locale "et_EE.UTF-8": codeset is "CPUTF-8" in pg_restore

2020-03-28 Thread Tom Lane
ale() take the same set of strings ... regards, tom lane

Re: Mixed Locales and Upgrading

2020-03-30 Thread Tom Lane
ding. It's columns containing non-ASCII characters that you'd want to worry about reindexing. regards, tom lane

Re: Is PostgreSQL SQL Database Command Syntax Similar to MySQL/MariaDB?

2020-03-30 Thread Tom Lane
t; or "exit" won't get you out of the session. Actually, since v11 that does work ... a concession we've made to MySQL converts ;-) regards, tom lane

Re: Index selection issues with RLS using expressions

2020-03-31 Thread Tom Lane
t impossible when RLS is active. Perhaps arrayoverlap() itself could be proven leakproof, but the underlying type-specific equality operator might or might not be. We don't have enough infrastructure to handle indirect leakproofness requirements like that, so you lose :-( regards, tom lane

Re: too many clients already

2020-04-02 Thread Tom Lane
ish connecting. The "ps" suggestion Adrian gave you would not show them either, because they're not going to say "idle". Enabling log_connections and watching the postmaster log would help prove or disprove that theory. regards, tom lane

Re: too many clients already

2020-04-02 Thread Tom Lane
st a single query, at least not when there are many such queries per second. I think pgbouncer and pgpool are the most widely used options, but this is a bit outside my expertise. regards, tom lane

Re: what happens when you issue ALTER SERVER in a hot environment?

2020-04-06 Thread Tom Lane
he GUC (server parameter) mechanism; what I just said about GUCs doesn't apply to them. regards, tom lane

Re: Unexpected behavior sorting strings

2020-04-08 Thread Tom Lane
pretty unintelligible and inconsistent :-(. In your example, I think the first-pass sort is on just the letters, and only if those are the same will it consider the punctuation. regards, tom lane

Re: order by not working in view ?

2020-04-09 Thread Tom Lane
rt, but there is nothing compelling the calling query to preserve the ordering. EXPLAIN would give you more info, but I'm betting that the IN is being converted to a semijoin and then done with a non-order-preserving join method. regards, tom lane

Re: Different Lock Behavior With Create and Drop Foreign Key

2020-04-10 Thread Tom Lane
g the constraint. which, at least to my eyes, isn't very clear that SHARE ROW EXCLUSIVE is the lock level used for *both* tables. regards, tom lane

Re: Huge number of pg_temp and pg_toast_temp schemas

2020-04-10 Thread Tom Lane
rely possible that some temp table took up too much disk space, but ~250 rows in pg_namespace is not the cause of that problem. regards, tom lane

Re: Using of --data-checksums

2020-04-12 Thread Tom Lane
catching problems at all? Let alone in sufficient number to make them be on-by-default? regards, tom lane

Re: Invalid name syntax on to_regrole(session_user)

2020-04-14 Thread Tom Lane
e these. regression=> select to_regrole(quote_ident(session_user)); to_regrole "dot.net" (1 row) > Is there other way (without extra type conversions) for getting oid of > session_user? select oid from pg_roles where rolname = session_user regards, tom lane

Re: How do work tercile, percentile & funcion percentile_cont() ?

2020-04-22 Thread Tom Lane
rest row values and FACTOR is NVE*(N–1) – floor(NVE*(N–1)) where NVE is the argument of percentile_cont and N is the number of rows. (In SQL:2003, see 10.9 general rule 7)h)i).) regards, tom lane

Re: walreceiver termination

2020-04-23 Thread Tom Lane
if the SIGTERM is coming from the > "postgres: startup" process. The startup process intentionally SIGTERMs the walreceiver under various circumstances, so I'm not sure that there's any surprise here. Have you checked the postmaster log? regards, tom lane

Re: walreceiver termination

2020-04-23 Thread Tom Lane
x27;d suspect that the latter is happening. regards, tom lane

Re: HOST variable in psql

2020-04-27 Thread Tom Lane
uable state for us: AFAICS, psql is behaving as documented. Why are you trying to override HOST like that, instead of just using some other variable? regards, tom lane

Re: How to debug "background worker "parallel worker" (PID 32152) was terminated by signal 11: Segmentation fault"

2020-04-27 Thread Tom Lane
Radu Radutiu writes: > Can you guide me how to debug postgresql crash? A stack trace would be pretty useful. https://wiki.postgresql.org/wiki/Generating_a_stack_trace_of_a_PostgreSQL_backend regards, tom lane

Re: PostgreSQL client hangs sometimes on 'EXEC SQL PREPARE sid_sisisinst FROM :select_anw;'

2020-04-27 Thread Tom Lane
;s doing according to pg_stat_activity? (If it's a reasonably modern server, the wait-condition fields would be interesting.) regards, tom lane

Re: HOST variable in psql

2020-04-27 Thread Tom Lane
=?utf-8?Q?Paul_F=C3=B6rster?= writes: >> On 27. Apr, 2020, at 14:20, Tom Lane wrote: >> AFAICS, psql is behaving as documented. Why are you trying to override >> HOST like that, instead of just using some other variable? > I could but > a) HOST is HOST and shou

Re: PostgreSQL client hangs sometimes on 'EXEC SQL PREPARE sid_sisisinst FROM :select_anw;'

2020-04-27 Thread Tom Lane
Matthias Apitz writes: > El día Montag, April 27, 2020 a las 08:40:04 -0400, Tom Lane escribió: >> Can you get a stack trace from the connected backend? > (gdb) bt > #0 0x7fd567776000 in epoll_pwait () from /lib64/libc.so.6 > #1 0x0084476c in WaitEventSe

Re: PostgreSQL client hangs sometimes on 'EXEC SQL PREPARE sid_sisisinst FROM :select_anw;'

2020-04-27 Thread Tom Lane
nges wouldn't be a bad idea. regards, tom lane

Re: Mixed Locales and Upgrading

2020-04-29 Thread Tom Lane
stem-dependent way. ..." The "system-dependent way" is "adopt whatever the LANG/LC_foo environment variables say at server startup", at least on non-Windows machines. I think that C is the fallback if none of those variables are set, though. Short answer is you shouldn't need to mess with these. regards, tom lane

Re: pg_stat_statements : how to catch non successfully finished statements ?

2020-04-30 Thread Tom Lane
legrand legrand writes: > Tom Lane-2 wrote >> The hard part here is that you have to be really careful what you do in >> a PG_CATCH block, because the only thing you know for sure about the >> backend's state is that it's not good. Catalog fetches are right out, &g

Re: Compiling C Extension Functions against PostgreSQL 12

2020-05-02 Thread Tom Lane
X is a good idea now, too. (Likely the core setting is the same, but if it were pointing at a different compiler that could cause trouble.) regards, tom lane

Re: Compiling C Extension Functions against PostgreSQL 12

2020-05-03 Thread Tom Lane
party library then maybe I > should post the errors output there and see what they have to say about > it... Yeah, the ultimate solution is clearly over on that side. These last errors you've posted don't seem particularly Postgres-related. regards, tom lane

Re: Very frequent "Too many clients" eventually crashes postmaster

2020-05-03 Thread Tom Lane
mptoms like that last fall [1]. regards, tom lane [1] https://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=3887e9455

Re: Temporary table has become problematically persistent

2020-05-04 Thread Tom Lane
ht we'd fixed that hazard quite some while back. regards, tom lane

Re: 12.2: Howto check memory-leak in worker?

2020-05-05 Thread Tom Lane
ow concerning the memory leak: > That one was introduced with the work done on the GSSAPI encryption; > it goes away when setting 'hostnogssenc' in pg_hba. Oooh ... it looks like some of the encryption code paths have neglected to call gss_release_buffer. Will fix, thanks for the report! regards, tom lane

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

2020-05-05 Thread Tom Lane
ve servers, and even a single server would have issues executing a transaction from a not-logged-in session --- but then where *do* we keep it, and how would an admin see or adjust the state? It's a can of worms we don't really care to open, especially when there are perfectly good solution

Re: PostgreSQL client hangs sometimes on 'EXEC SQL PREPARE sid_sisisinst FROM :select_anw;'

2020-05-05 Thread Tom Lane
Matthias Apitz writes: > El día lunes, abril 27, 2020 a las 09:40:39a. m. -0400, Tom Lane escribió: >> If you're in a position to run a modified server, you could try >> inserting a debug log message: > I've added the printout of the length in this case and anothe

Re: Encoding conversion: Use replacement character instead of failing query with "ERROR: character with byte sequence 0xd0 0xad in encoding "UTF8" has no equivalent in encoding LATIN1" ?

2020-05-05 Thread Tom Lane
s. Problem is that it's quite difficult to get the system to actually *use* a non-default conversion for anything really significant, like say client I/O. I don't know that anyone's thought hard about how to improve that. regards, tom lane

Re: White space affecting parsing of range values

2020-05-06 Thread Tom Lane
there would be more people unhappy than happy. regards, tom lane

Re: pg_restore V12 fails consistently against piped pg_dumps

2020-05-06 Thread Tom Lane
eaking consistently. Without a concrete example it's hard to say, but maybe the issue is that v12 is more aggressive about parallelizing restores --- see 548e50976. regards, tom lane

Re: Explain plan changes - IN CLAUSE ( Passing direct values Vs INNER Query )

2020-05-07 Thread Tom Lane
xecutor improvements that have been made since it went in. But it was clearly a win at the time.) regards, tom lane

Re: PostgreSQL client hangs sometimes on 'EXEC SQL PREPARE sid_sisisinst FROM :select_anw;'

2020-05-10 Thread Tom Lane
from the socket and dump that --- probably a hex dump would be advisable, because it'll contain \0 bytes. Seems like a good idea. regards, tom lane

Re: PostgreSQL client hangs sometimes on 'EXEC SQL PREPARE sid_sisisinst FROM :select_anw;'

2020-05-11 Thread Tom Lane
bit. > Interestingly, the other side of this connection of the port 5432 is not > visible, i.e. a 'lsof -P | grep 5432' does not show it in this moment. Permissions problem maybe? I'm not sure that lsof will tell you much about non-postgres-owned processes, unless you run it as root. regards, tom lane

Re: PostgreSQL client hangs sometimes on 'EXEC SQL PREPARE sid_sisisinst FROM :select_anw;'

2020-05-11 Thread Tom Lane
[ squint... ] That looks nothing like a Postgres-protocol exchange to me. If it weren't for the runs of zeroes, I'd wonder if the connection had SSL encryption turned on. Perhaps you captured the wrong session? regards, tom lane

Re: Is there a significant difference in Memory settings between 9.5 and 12

2020-05-11 Thread Tom Lane
ing 9.5 and 142.1MB using 12. So there's half a meg or so of additional data in v12, but certainly not gigabytes worth. Are you trying to start both postmasters concurrently? Maybe you're hitting some kernel limit on the total amount of shared memory in the system. regards, tom lane

Re: Is there a significant difference in Memory settings between 9.5 and 12

2020-05-11 Thread Tom Lane
g if you set shared_memory_type = sysv? regards, tom lane

Re: Is there a significant difference in Memory settings between 9.5 and 12

2020-05-11 Thread Tom Lane
Tory M Blue writes: > That may be the next step in the lab, but was hoping someone knew of a > significant difference. I think we've made it perfectly clear that we don't. There's something odd about your situation. regards, tom lane

Re: ESQL/C: a ROLLBACK rolls back a COMMITED transaction

2020-05-12 Thread Tom Lane
;s striking that this log shows a server ack of the INSERT, but no server ack of the COMMIT. Maybe that's just an oversight in the ESQL/C logging logic, but I wonder what's actually getting to the server. You might try enabling log_statement = all so you can get a trace of what the server thinks is happening. regards, tom lane

Re: ESQL/C: a ROLLBACK rolls back a COMMITED transaction

2020-05-12 Thread Tom Lane
RT 0 1 > i.e. have added the file name to the line number as "on line 1744 of > swd_daten.pgc" to not always have to think, hey in which table we're > with this at the moment. Not an unreasonable suggestion, but it'd be more likely to happen if you send in a patch ;-). regards, tom lane

Re: ESQL/C: a ROLLBACK rolls back a COMMITED transaction

2020-05-13 Thread Tom Lane
Matthias Apitz writes: > El día Dienstag, Mai 12, 2020 a las 08:01:15 -0400, Tom Lane escribió: >> Not an unreasonable suggestion, but it'd be more likely to happen if >> you send in a patch ;-). > as the first argument to ECPGdo() is of type int we can not do a hack >

Re: Create user mapping for role

2020-05-13 Thread Tom Lane
user mapping for a role. But I think you'll find that sally et al have to do "SET ROLE foreignusers" to use it. It's difficult to see a way to avoid that --- after all, if sally is also a member of foreignuserstoo that also has a mapping, which one should the system use?

Re: Why is it that “aggregate functions are not allowed in FROM clause of their own query level”?

2020-05-13 Thread Tom Lane
tics this is asking for", so I'd be hesitant to let a tool think that it can rearrange things like this. regards, tom lane

Re: Practical usage of large objects.

2020-05-13 Thread Tom Lane
Dmitry Igrishin writes: > As you know, PostgreSQL has a large objects facility [1]. I'm curious > are there real systems which are use this feature? We get questions about it regularly, so yeah people use it. regards, tom lane

Re: PG12.2 Configure cannot enalble SSL

2020-05-14 Thread Tom Lane
ing here would only work if the header file's full path is /usr/local/opt/openssl/include/openssl/openssl/ssl.h which doesn't seem likely. regards, tom lane

Re: Reuse an existing slot with a new initdb

2020-05-14 Thread Tom Lane
o work. regards, tom lane

Re: surprisingly slow creation of gist index used in exclude constraint

2020-05-14 Thread Tom Lane
regards, tom lane

Re: view selection during query rewrite

2020-05-14 Thread Tom Lane
n is that you'd get stale data, since a matview is not going to be entirely up to date. It's no business of the rewriter (or the query planner) to decide that such a tradeoff is OK. I do recall some discussion of extensions attempting to do such things, but I doubt we'd ever put it in core Postgres. regards, tom lane

Re: PG12.2 Configure cannot enalble SSL

2020-05-15 Thread Tom Lane
"Gavan Schneider" writes: > HDRS=${HDRS}:"/usr/local/Cellar/openssl@1.1/1.1.1g/include" > ... > --with-includes=${HRDS} If that's an accurate copy of your script, spelling HDRS correctly would help. regards, tom lane

Re: Bug on version 12 ?

2020-05-15 Thread Tom Lane
-+--- 2020-04-02T18:26:50.941531-03:00 | 2020-04-02 17:26:50.941531-04 (1 row) Use of to_timestamp() to parse a bog-standard time format is a classic antipattern IMO. It is inflexible, it doesn't detect the errors you'd actually like it to detect, and it is harder to type --- so why do people insist on doing it like that? regards, tom lane

Re: Bug on version 12 ?

2020-05-15 Thread Tom Lane
was to stop using to_timestamp altogether. That would work fine on any Postgres version. regards, tom lane

Re: schema agnostic functions in language sql

2020-05-15 Thread Tom Lane
other than that, I'd expect the execution-time search path to determine how a SQL function behaves. Since Rob didn't provide any details, it's far from clear what's going wrong for him. regards, tom lane

Re: schema agnostic functions in language sql

2020-05-15 Thread Tom Lane
;s only related to what happens at execution if the search path is the same. regards, tom lane

Re: template0 needing vacuum freeze?

2020-05-16 Thread Tom Lane
autovacuum kicks in. You should *not* have had to do anything manual about this, unless you have frobbed your autovac settings to the point of brokenness. regards, tom lane

Re: Using b-tree index for >= condition when joining

2020-05-16 Thread Tom Lane
4-21') t2 USING (date) WHERE t1.date >= '2019-04-21'; but of course that's even less easy :-( regards, tom lane

Re: template0 needing vacuum freeze?

2020-05-18 Thread Tom Lane
nge that would prevent any one database from completely consuming autovacuum's attention, even in wraparound-hazard situations. Don't recall when. Do you have an idea why autovac was failing to clear the issue on that one problem table, though? regards, tom lane

Re: Huge tables, trying to delete OID's taking 6+hours per table

2020-05-19 Thread Tom Lane
hackish way, and so there's no way to get rid of them without a table rewrite. regards, tom lane

Re: SET ROLE and search_path

2020-05-20 Thread Tom Lane
Rob Sargent writes: > Am I (again) alone in finding this a bit hokey?  That a user name just > happens to be a schema name ... That's actually strongly encouraged by the SQL spec, if memory serves. regards, tom lane

Re: Query returns no rows in pg_basebackup cluster

2020-05-21 Thread Tom Lane
annot changed. Then you might as well just rm -rf it (or whatever the equivalent Windows incantation is). On Windows, that database is broken and useless. regards, tom lane

Re: Query returns no rows in pg_basebackup cluster

2020-05-21 Thread Tom Lane
ailable. LIKE, however, sees the "_" as a wildcard so it cannot use an index and resorts to a seqscan --- which will work fine. It's just index searches (and index-based sorts) that are broken. Of course, if there isn't an index on the column in question then this theory falls to the ground. regards, tom lane

Re: Query returns no rows in pg_basebackup cluster

2020-05-22 Thread Tom Lane
I think they are less alike than you hoped, because if they were alike, you wouldn't be seeing this problem. Possibly you could try running contrib/amcheck on the index in question and see if it reports any issues. regards, tom lane

Re: btree_gist extension - gbt_cash_union return type

2020-05-22 Thread Tom Lane
he indexes that depend on it, so it seems like a big overreaction. regards, tom lane

Re: Query returns no rows in pg_basebackup cluster

2020-05-22 Thread Tom Lane
nt platforms have different ideas on fine points like how to sort a leading underscore. Those things just aren't that well standardized. regards, tom lane

Re: How to get the OID of a view

2020-05-22 Thread Tom Lane
m. A good way to learn what to do is to see what psql does for its various \d commands --- if you start it with the -E option you'll see the underlying SQL it issues. It'll likely be more complicated than you want, but you can strip away what's not useful for you. regards, tom lane

Re: Query returns no rows in pg_basebackup cluster

2020-05-24 Thread Tom Lane
yes; see thread. The short answer here is that we aren't going to support such cases. If you try to replicate across platforms, and it works, you're in luck. If it doesn't work, you get to keep both pieces; we will not accept that as a bug. regards, tom lane

Re: Order by lower(column-alias) doesn't work...

2020-05-28 Thread Tom Lane
the composite type as firstname citext, lastname citext, other-fields-here and then the regular composite-type comparison rule would give you approximately what you said you wanted ... but only approximately. regards, tom lane

Re: psql12.3 + jdbc_fdw - return wrong query results by using OR

2020-05-28 Thread Tom Lane
This'd be a bug in jdbc_fdw, and a pretty bad one :-(. But you'd have to report it to the jdbc_fdw author(s) --- the core Postgres project doesn't maintain that. regards, tom lane

Re: problem with self built postgres 9.0.9

2020-05-29 Thread Tom Lane
Gabriele Bulfon writes: > Amazing! Rebuilt without -O and it worked like a charm! Yeah, modern compilers tend to apply optimizations that break old versions of Postgres. -O0 usually takes care of it. regards, tom lane

Re: pg_ctl can't start db server

2020-05-29 Thread Tom Lane
he postmaster can deal with other approaches to setting up an external config file.) regards, tom lane

Re: Fine grained permissions on User Mapping

2020-06-02 Thread Tom Lane
local user create/delete his own foreign tables, then what you could do is make sure the remote user ID's password is useless for any purpose except connecting from the source database. One way to do that is to adjust the remote DB's pg_hba.conf to disallow the remote user ID from connecting from anyplace except the local database server. regards, tom lane

Re: Unable to find the details of bug fix in 9.6.x minor version.

2020-06-03 Thread Tom Lane
d them in the newest released branch. (So for example the above is from the v10 branch; v11 was not yet released so it had no release note for this.) As Adrian mentions, grepping the result of "git log" is also a good way to find relevant commits. regards, tom lane

Re: Can we get SQL Server-like cross database queries

2020-06-03 Thread Tom Lane
Guyren Howe writes: > Is it practical to provide the SQL Server-like feature in Postgres? No. regards, tom lane

Re: A parsing question

2020-06-03 Thread Tom Lane
t;-' isn't one. (The rules there probably look a bit bizarre, but the intention is to ensure that operators found in the SQL spec can be parsed without requiring spaces between them.) regards, tom lane

Re: Index no longer being used, destroying and recreating it restores use.

2020-06-04 Thread Tom Lane
Did you make a note of the cost estimates for the different plans? regards, tom lane

Re: Index no longer being used, destroying and recreating it restores use.

2020-06-04 Thread Tom Lane
Adrian Klaver writes: > On 6/4/20 9:43 AM, Tom Lane wrote: >> It's possible that the index had bloated to the point where the planner >> thought it was cheaper to use a seqscan. Did you make a note of the >> cost estimates for the different plans? > I missed the p

Re: PostgreSQL 11 with SSL on Linux

2020-06-04 Thread Tom Lane
libraries I need to include in my download for > this to work on a non-networked server? Are you using the right install tool? "rpm -i" shouldn't result in any nonlocal accesses. Tools like yum or dnf will, because they're meant to fetch from nonlocal repositories. regards, tom lane

Re: PostgreSQL 11 with SSL on Linux

2020-06-04 Thread Tom Lane
addition to an rpm named just postgresql-NNN you need postgresql-server-NNN, and maybe some other bits. regards, tom lane

Re: PostgreSQL 11 with SSL on Linux

2020-06-04 Thread Tom Lane
es because that's what they think the RHEL distribution ought to be. The main problem from your perspective is the risk of confusion with the libraries that community PG11 RPMs will bring in. You might try a test deinstallation of that RPM first, and see if it cascades to removing anything you can't live without. regards, tom lane

Re: Binary encoding of TIMESTAMP WITH TIME ZONE

2020-06-04 Thread Tom Lane
Indeed it does not, just as the on-disk format for it does not. The representation is effectively always in UTC. If you have some other timezone setting selected, timestamptz_out rotates to that zone for display purposes ... but the binary format doesn't. regards, tom lane

Re: Possible improvement

2020-06-05 Thread Tom Lane
eval_const_expressions(), which is applied to all expressions. Possibly prepqual.c's canonicalize_qual() would be a better place. The real problem here is going to be objection #2. The rules under which any optimization could be applied are nontrivial, so that we'd spend quite a bit of time trying to figure out whether the optimization applies ... and I'm afraid that most of the time it would not. regards, tom lane

Re: Postgres12 - Confusion with pg_restore

2020-06-05 Thread Tom Lane
sting database that pg_restore can connect to for long enough to issue the CREATE DATABASE. You can't mix-and-match these approaches. regards, tom lane

<    2   3   4   5   6   7   8   9   10   11   >