Re: SELECT of pseudo hex value gives unexpected result

2019-01-29 Thread Tom Lane
alid unless one of them is punctuation (e.g. 1+2), but our lexer is a bit less rigid about that. regards, tom lane

Re: User Name Maps seem broken in 11.1 on CentOS 7

2019-01-29 Thread Tom Lane
Also: have you been reloading the server configuration after modifying the file? The postmaster only re-reads that file after getting SIGHUP. ("pg_ctl reload" is the usual way to send the signal.) regards, tom lane

Re: Old tsearch functions

2019-01-30 Thread Tom Lane
ertainly beats trying to manually identify and drop the obsolete types and functions. You will need to do this in 9.5, or at the latest 9.6, because we dropped support for that extension in v10. regards, tom lane

Re: Old tsearch functions

2019-01-31 Thread Tom Lane
Howard News writes: > On 30/01/2019 18:08, Tom Lane wrote: >> Note that if you had those functions laying around ever since 8.3, >> they're probably just "loose" and not wrapped into an extension at all. > unfortunately running > create extension tsearch2 fro

Re: Unused files in the database directory after crashed VACUUM FULL

2019-02-10 Thread Tom Lane
cribed it --- verify with pg_filenode_relation that the file doesn't correspond to any pg_class entry, then manually delete. (There is a crash-recovery phase that does something similar, but I think it's only designed to clean up temporary files.) regards, tom lane

Re: Unused files in the database directory after crashed VACUUM FULL

2019-02-10 Thread Tom Lane
Hannes Erven writes: > Am 10.02.19 um 16:41 schrieb Tom Lane: >> What do you mean by "crash" exactly? > Here's the exact log (the pgadmin process was running the VACCUM FULL): > 2019-02-09 23:44:53.516 CET [20341] @/ <> PANIC: could not write to > file &q

Re: Implementing pgaudit extension on Microsoft Windows

2019-02-11 Thread Tom Lane
ibrary correctly built, so I think this must boil down to the "shared_preload_libraries" setting not having taken. You could cross-check that by seeing what "SHOW shared_preload_libraries" prints. I wonder if you forgot to remove the comment marker (#) on the shared_preload_libraries line? regards, tom lane

Re: Blank, nullable date column rejected by psql

2019-02-11 Thread Tom Lane
standard, and in Postgres, they're not at all the same thing.) regards, tom lane

Re: SV: Implementing pgaudit extension on Microsoft Windows

2019-02-12 Thread Tom Lane
entation, it doesn't seem like there's anything else that has to be set. I wonder whether pgaudit actually works on Windows? It might have some weird dependency on children being spawned with fork not exec, for instance. You probably ought to contact the authors and ask. regards, tom lane

Re: Getting wrong time using now()

2019-02-12 Thread Tom Lane
ight to you, it probably means that you don't have the timezone parameter set correctly. regards, tom lane

Re: loading plpython error

2019-02-14 Thread Tom Lane
I believe this means you're trying to load an 11.2 build of plpython2.so into an 11.1 server. You need to either update the server, or find an 11.1 build of plpython. regards, tom lane

Re: WSL (windows subsystem on linux) users will need to turn fsync off as of 11.2

2019-02-14 Thread Tom Lane
first item in the release notes: https://www.postgresql.org/docs/11/release-11-2.html Also, we'd quite like to hear more details; can you find any PANIC messages in the server log? regards, tom lane

Re: WSL (windows subsystem on linux) users will need to turn fsync off as of 11.2

2019-02-14 Thread Tom Lane
f any of the branches in pg_flush_data really need the data_sync_elevel treatment, somebody's mental model of that operation needs adjustment. Maybe it's mine. regards, tom lane

Re: WSL (windows subsystem on linux) users will need to turn fsync off as of 11.2

2019-02-15 Thread Tom Lane
ync-failure? I'm of the opinion that we shouldn't be panicking for sync_file_range failure, period. regards, tom lane

Re: WSL (windows subsystem on linux) users will need to turn fsync off as of 11.2

2019-02-15 Thread Tom Lane
Andres Freund writes: > On February 15, 2019 9:13:10 AM PST, Tom Lane wrote: >> I'm of the opinion that we shouldn't be panicking for sync_file_range >> failure, period. > With some flags it's strictly required, it does"eat"errors depending on

Re: Problems pushing down WHERE-clause to underlying view

2019-02-15 Thread Tom Lane
re t4e_contractor_id = 'nicklas.a...@jordogskog.no'); when you need to drive the lookup from something other than raw machine_key. This'll fail, as-is, if there's more than one contractor_access row with t4e_contractor_id = 'nicklas.a...@jordogskog.no', but you can probably adapt the idea to make it work. regards, tom lane

Re: WSL (windows subsystem on linux) users will need to turn fsync off as of 11.2

2019-02-16 Thread Tom Lane
errnos that mean trouble, instead of a blacklist of some that don't. I'm especially troubled by the idea that blacklisting some errnos might reduce to ignoring them completely, which would be a step backwards from our pre-PANIC behavior. regards, tom lane

Re: FDW, too long to run explain

2019-02-17 Thread Tom Lane
rtant to preserve? I believe that the EXPLAIN will leave the remote transaction holding AccessShareLock on the query's tables, meaning that doing it in one transaction provides some positive protection against such problems, which we'd lose if we changed this. regards, tom lane

Re: Table Inheritance and Foreign Keys

2019-02-17 Thread Tom Lane
ally practical to support these things in a generic inheritance tree. Probably we should revise that bit of documentation to point people at the partitioning features; I doubt anything's ever going to be done about this for generic inheritance. regards, tom lane

Re: Partial index on JSON column

2019-02-19 Thread Tom Lane
on that the value couldn't be null doesn't hold. In any case you're better off without the runtime type conversion: that isn't doing much for you except raising the odds of getting an error. regards, tom lane

Re: Partial index on JSON column

2019-02-19 Thread Tom Lane
at > the deduction that the value couldn't be null doesn't hold. Hmm ... on closer inspection, we do assume that CoerceViaIO is strict, but not everyplace knows that, so there's something that could be improved here. In the meantime, try it as stated above. regards, tom lane

Re: LDAP authenticated session terminated by signal 11: Segmentation fault, PostgresSQL server terminates other active server processes

2019-02-20 Thread Tom Lane
s a fair bit like what you are describing. regards, tom lane

Re: LDAP authenticated session terminated by signal 11: Segmentation fault, PostgresSQL server terminates other active server processes

2019-02-20 Thread Tom Lane
Mike Yeap writes: >> Are the "postgres" executable and libpq linked with the same version of >> OpenLDAP? > How should I check whether they are linked? "ldd" should show the dependencies of whatever executable or library you point it at. regards, tom lane

Re: PG Upgrade with hardlinks, when to start/stop master and replicas

2019-02-21 Thread Tom Lane
rd of a better solution. system("rm -rf $OLDPGDATA") ... nah, that is not a better idea. regards, tom lane

Re: Future Non-server Windows support???

2019-02-24 Thread Tom Lane
vaguely recall hearing that EDB had decided to cut back the number of distinct Windows versions they build packages for, but that's theirs to decide not a community matter. regards, tom lane [1] https://buildfarm.postgresql.org/cgi-bin/register-form.pl

Re: LDAP authenticated session terminated by signal 11: Segmentation fault, PostgresSQL server terminates other active server processes

2019-02-26 Thread Tom Lane
its those cross-checks. I'd be afraid to risk it in the back branches though ... regards, tom lane

Re: Channel binding not supported using scram-sha-256 passwords

2019-02-26 Thread Tom Lane
Peter Eisentraut writes: > I tried reproducing the issue locally, but the required OpenSSL version > is too old to be easily available. Hm, I've got buildfarm hosts with quite old OpenSSLs handy. What tests do you want done, exactly? regards, tom lane

Re: LDAP authenticated session terminated by signal 11: Segmentation fault, PostgresSQL server terminates other active server processes

2019-02-26 Thread Tom Lane
Thomas Munro writes: > On Wed, Feb 27, 2019 at 3:57 AM Tom Lane wrote: >> If pthread_is_threaded_np(), or something equivalent, is widely available >> then it might be all right to try solving this going forward by switching >> to libldap_r and seeing if anyone hits those

Re: why not using a mountpoint as PGDATA?

2019-02-27 Thread Tom Lane
the file system isn't mounted. You need that, and you do *not* want automated attempts to "repair" that. regards, tom lane

Re: Why can I not get lexemes for Hebrew but can get them for Armenian?

2019-02-27 Thread Tom Lane
g on what characters you actually need to work with, you might have better luck using one of the ISO8859 character set locales. Though if you actually need both Hebrew and Armenian in the same DB, that suggestion is a nonstarter. regards, tom lane

Re: why not using a mountpoint as PGDATA?

2019-02-27 Thread Tom Lane
opers did). But this has been in our folklore long enough now that anybody who's still doing that definitely should get yelled at ... regards, tom lane

Re: Overloaded && operator from intarray module prevents index usage.

2019-02-28 Thread Tom Lane
ether; but that will break things for some people too, no doubt :-( regards, tom lane

Re: Overloaded && operator from intarray module prevents index usage.

2019-02-28 Thread Tom Lane
dex. 4. Rename intarray's && operator to something else (will bite you at next dump/reload, where the renaming will be lost). 5. Always schema-qualify references to the core && operator. All of these have obvious downsides, especially if you're actively using the intarray extension for other purposes. regards, tom lane

Re: race condition when checking uniqueness between two tables

2019-02-28 Thread Tom Lane
n is in READ_COMMITTED. Another line of thought is to use SERIALIZABLE mode and just retry the inevitable serialization failures. However, if there are a lot of concurrent processes doing this, you'd probably get so many serialization failures that it'd be quite inefficient. regards, tom lane

Re: Mind of its own?

2019-02-28 Thread Tom Lane
g either of these template databases accidentally. Overriding that is left as an exercise for the student.) regards, tom lane

Re: regex DoS in postgresql?

2019-03-02 Thread Tom Lane
there such as Perl's. That wikipedia entry doesn't seem to go into much detail, but I suspect the examples it gives are intended to cause problems for Perl's engine. Perl's engine does a lot more backtracking than ours does, and consequently it's easier to send it down

Re: Performance comparison between Pgsql 10.5 and Pgsql 11.2

2019-03-04 Thread Tom Lane
ng, which is something you could usefully investigate with strace, perhaps. regards, tom lane

Re: [External] LIMIT not showing all results

2019-03-05 Thread Tom Lane
.57..7760.25 rows=1912 width=31) (actual > time=0.539..0.540 rows=1 loops=1) > > > Index Cond: ((name)::text = 'foo'::text) > Planning time: 6.728 ms > Execution time: 0.587 ms > (5 rows) Hm, so possibly corruption in that index? REINDEX might help. regards, tom lane

Re: [External] LIMIT not showing all results

2019-03-05 Thread Tom Lane
ent collation behavior. regards, tom lane

Re: [External] LIMIT not showing all results

2019-03-05 Thread Tom Lane
Matthew Pounsett writes: > On Tue, 5 Mar 2019 at 12:54, Tom Lane wrote: >> Given that (a) this was triggered by a server migration and (b) >> the leading column of the index looks like it's probably varchar, >> I'm suspicious that the new server has different colla

Re: [External] LIMIT not showing all results

2019-03-05 Thread Tom Lane
Matthew Pounsett writes: > On Tue, 5 Mar 2019 at 13:55, Tom Lane wrote: >> Yeah, that would fit the theory :-(. Debian would be using glibc >> and FreeBSD would not be. > The rsync migration was because we needed to do a cross-country copy before > putting the original

Re: [External] LIMIT not showing all results

2019-03-05 Thread Tom Lane
Matthew Pounsett writes: > On Tue, 5 Mar 2019 at 18:09, Tom Lane wrote: >> If you're planninng to install (the same version of) FreeBSD on >> the original server hardware, then rsync'ing back from the new >> system should be fine. But Debian<->FreeBSD is go

Re: query has no destination for result data

2019-03-06 Thread Tom Lane
7;m not entirely sure how such a case would have got past parsing and into execution, but it's worth thinking about. In any case, this isn't solvable with just what you've shown us here. regards, tom lane

Re: DDL for database creation

2019-03-08 Thread Tom Lane
like to keep the same encoding, connection limit (if >> anything was specified), etc. Is there a way to create this DDL? > pg_dump --schema-only maybe? The specific settings the OP mentions are database-level settings; so she'd need pg_dumpall (perhaps with -g), or pg_dump with -C.

Re: ERROR: XX000: cannot update SecondarySnapshot during a parallel operation

2019-03-14 Thread Tom Lane
helmed by the usefulness of the information presented that I thought incorporating it would be mostly a waste of effort. Maybe there's an argument that it's better than nothing at all; but I think we'd still be driven to asking people to get stack traces with better tools. regards, tom lane

Re: Conditional INSERT

2019-03-15 Thread Tom Lane
that's a very new feature, and I don't think anyone's done serious performance comparisons of that vs. rules. regards, tom lane

Re: Fwd: Camel case identifiers and folding

2019-03-16 Thread Tom Lane
equest would require case-insensitive uniqueness enforcement in the system catalogs' unique indexes on names. You have no idea how large a can of worms that opens (but I'll just mention that "which characters are letters" doesn't even have a well defined universal answer). regards, tom lane

Re: How to parse XML in Postgres newer versions also

2019-03-17 Thread Tom Lane
of namespaces from this query? I think the old and new behaviors are the same if no namespaces are involved. regards, tom lane

Re: postgresql-11 installation errors via deb package on ubuntu 16

2019-03-18 Thread Tom Lane
supplied configuration adjustment script. More than that is hard to say without familiarity with the ubuntu postgres packages, which I lack. regards, tom lane

Re: Performance of ByteA: ascii vs binary

2019-03-18 Thread Tom Lane
hex the performance would be less data-dependent. regards, tom lane

Re: LDAP authenticated session terminated by signal 11: Segmentation fault, PostgresSQL server terminates other active server processes

2019-03-19 Thread Tom Lane
o not have different frontend and backend LDAP libs. As far as the specifics of the patch go, I don't like that you didn't adjust any of the comments near pthread_is_threaded_np() usages. regards, tom lane

Re: FreeBSD 12 and Postgres build failures

2019-03-19 Thread Tom Lane
regards, tom lane

Re: Postgres Enhancement Request

2019-03-20 Thread Tom Lane
OP's desired security model (which he hasn't explained). regards, tom lane

Re: Postgres Enhancement Request

2019-03-20 Thread Tom Lane
Thomas Kellerer writes: > Tom Lane schrieb am 20.03.2019 um 14:59: >> No, it wouldn't. The point of CREATEROLE is to allow user creation >> and deletion to be done by a role that's less than full superuser. >> If we changed it like that, then you'd be right b

Re: to_timestamp function

2019-03-20 Thread Tom Lane
een widely panned, and it also turns out that Oracle throws an error in such cases. Since these functions are nominally Oracle-compatibility features, let's change that. regards, tom lane

Re: LDAP on AIX build farm animals

2019-03-20 Thread Tom Lane
here some other way to fingerprint the LDAP implementation? regards, tom lane

Re: LDAP authenticated session terminated by signal 11: Segmentation fault, PostgresSQL server terminates other active server processes

2019-03-20 Thread Tom Lane
Thomas Munro writes: > On Wed, Mar 20, 2019 at 10:51 AM Tom Lane wrote: >> It's reasonable to assume that the proposed patch won't cause real issues >> on any modern platform, but I'm not sure we can assume that for old ones, >> so the whole thing is ma

Re: Performance of ByteA: ascii vs binary

2019-03-21 Thread Tom Lane
dered here -- the OP is apparently talking about the speed of bytea_in, while the rest of us have been thinking about bytea_out. The question about whether the text representation is hex or "escape" style still applies, though. regards, tom lane

Re: LDAP authenticated session terminated by signal 11: Segmentation fault, PostgresSQL server terminates other active server processes

2019-03-21 Thread Tom Lane
Thomas Munro writes: > On Thu, Mar 21, 2019 at 5:07 PM Tom Lane wrote: >> Thomas Munro writes: >>> If someone out there is not enabling any of that stuff >>> because their system doesn't like threads, they can use >>> --disable-thread-safety to avoid t

Re: How to check is connection encrypted

2019-03-22 Thread Tom Lane
'm not sure if ODBC provides any way to get at that. Or, if you want to check/enforce this from the server side, you could enable log_connections and see what's logged; or simply change pg_hba.conf to disallow non-SSL connections. regards, tom lane

Re: How to check is connection encrypted

2019-03-22 Thread Tom Lane
authorized: user=testuser database=yle > Why Postgres 9.1.5 version does not show ssl connection info here ? Because that was added in 9.4 :-( 9.1.x is long out of support, and even if it weren't, the last release was 9.1.24. You *REALLY* need to update. regards, tom lane

Re: Installing PostgreSQL on Oracle Solaris

2019-03-23 Thread Tom Lane
he other pipe step. (This is assuming that unpacking straight into /usr is actually what you want to do. I share the doubts of the other responders about that being a wise procedure.) regards, tom lane

Re: regr_slope returning NULL

2019-03-23 Thread Tom Lane
form- specific roundoff error, but it seems fishy. regards, tom lane

Re: [External] postgres 9.5 DB corruption: invalid byte sequence for encoding "UTF8"

2019-03-26 Thread Tom Lane
es what the *server's* default for client_encoding is, but an awful lot of client-side code will immediately override that. psql will try to set it based on its LANG/LC_CTYPE environment, for example. I don't know what JDBC does; it might be different. But in any case, yes, it'd be more reliable to check pg_database.encoding explicitly. regards, tom lane

Re: plctl extension issue postgresql 11.2

2019-03-28 Thread Tom Lane
those RPMs.) Look into /etc/yum.repos.d/ ... if you see a file for the PGDG repo, fix it to be enabled, otherwise you need to download and install that repo config file. regards, tom lane

Re: libpq read/write

2019-03-30 Thread Tom Lane
ut it is what it is. regards, tom lane

Re: CVE-2019-9193 about COPY FROM/TO PROGRAM

2019-03-30 Thread Tom Lane
ebody at trustwave (not the actual author of this "research") did reach out to the pgsql-security list, and we discussed with him that it wasn't a violation of Postgres' security model, and he agreed. But then they've posted this anyway. Left hand doesn't talk to right hand there, apparently. regards, tom lane

Re: CVE-2019-9193 about COPY FROM/TO PROGRAM

2019-04-01 Thread Tom Lane
Magnus Hagander writes: > On Sat, Mar 30, 2019 at 10:16 PM Tom Lane wrote: >> Yeah; this is supposing that there is a security boundary between >> Postgres superusers and the OS account running the server, which >> there is not. We could hardly have features like untrus

Re: logical replication - negative bitmapset member not allowed

2019-04-01 Thread Tom Lane
ertainly be a bug, but we'd need to reproduce it to fix it. What are you doing that's different from everybody else? Can you provide any other info to narrow down the problem? regards, tom lane

Re: logical replication - negative bitmapset member not allowed

2019-04-02 Thread Tom Lane
o be getting transferred despite the complaint? If not, what's missing on the slave? regards, tom lane

Re: logical replication - negative bitmapset member not allowed

2019-04-02 Thread Tom Lane
to reproduce the error without a lot of guesswork. regards, tom lane

Re: Move vs. copy table between databases that share a tablespace?

2019-04-03 Thread Tom Lane
(I'm sure you have a lot, if this table is big enough to be worth troubling over), and FSM and VM files. * The indexes on the table also need to be moved through the same type of process. I'd strongly counsel practicing on a test setup before you try to do this to your live data. Oh: and you have a backup, I trust. regards, tom lane

Re: Move vs. copy table between databases that share a tablespace?

2019-04-03 Thread Tom Lane
probably out of luck if the table has a TOAST table, unless the TOAST table is empty. There wouldn't be any good way to keep TOAST pointers valid across the move. (PG v12 will make that easier, but that's no help to you today.) regards, tom lane

Re: Move vs. copy table between databases that share a tablespace?

2019-04-03 Thread Tom Lane
Alvaro Herrera writes: > On 2019-Apr-03, Tom Lane wrote: >> Actually, thinking about that a bit harder: there's one aspect of >> what pg_upgrade does that's really hard to control from userspace, >> and that's forcing tables to have the same OIDs as before. I

Re: PostgreSQL Windows 2019 support ?

2019-04-03 Thread Tom Lane
h gets accepted: https://www.postgresql.org/message-id/flat/CAJrrPGcfqXhfPyMrny9apoDU7M1t59dzVAvoJ9AeAh5BJi%2BUzA%40mail.gmail.com If you want to help move things along, you could review/test the patch. regards, tom lane

Re: dbuser acess privileges

2019-04-04 Thread Tom Lane
way for a very very long time. regards, tom lane

Re: CVE-2019-9193 about COPY FROM/TO PROGRAM

2019-04-04 Thread Tom Lane
iled a dispute with Mitre about the CVE, and also reached out to trustwave to try to find out why they filed the CVE despite the earlier private discussion. regards, tom lane

Re: pg_upgrade --jobs

2019-04-06 Thread Tom Lane
low that, if it did indeed do anything. You don't want "--jobs=10" to suddenly turn into 100 sessions. regards, tom lane

Re: pg_upgrade --jobs

2019-04-06 Thread Tom Lane
shows what ordering is required for restore? > The --link option to pg_upgrade would be so much more useful if it > weren't still bound to serially dumping the schemas of half a million > tables. To be perfectly blunt, if you've got a database with half a million tables, You&#

Re: Does pg_stat_get_live_tuples() matter?

2019-04-09 Thread Tom Lane
eltuples definitely does matter to the planner, and some of the sibling counters like n_dead_tuples drive autovacuum, but nothing is examining n_live_tuples AFAICS. regards, tom lane

Re: pg_indexes doesn't show indexes for partitioned tables - bug or intended?

2019-04-10 Thread Tom Lane
#x27;t be, for most). And, having different behaviors in different "v11" installations is not really all that nice, especially for something that's only debatably a bug. So I concur with the decision not to back-patch. regards, tom lane [1] https://www.postgresql.org/docs/9.6/release-9-6-5.html

Re: When do vacuumed pages/tuples become available for reuse?

2019-04-11 Thread Tom Lane
o back to table and remove the previously-found tuples * if not end of table, repeat So a larger work-mem setting means fewer passes over the indexes, but a longer time until space is reclaimed. regards, tom lane

Re: When do vacuumed pages/tuples become available for reuse?

2019-04-11 Thread Tom Lane
64MB? I see only pluses ) Well, usually people prefer to minimize the number of passes over the indexes. regards, tom lane

Re: When do vacuumed pages/tuples become available for reuse?

2019-04-11 Thread Tom Lane
dead tuples remained ... probably because you have > long-running transactions preventing vacuum from removing them. I think you misread it --- I'm pretty sure "N remain" is referring to live tuples. Maybe we should adjust the wording to make that clearer? regards, tom lane

Re: Trigger when user logs in

2019-04-11 Thread Tom Lane
login behavior. regards, tom lane

Re: Trigger when user logs in

2019-04-11 Thread Tom Lane
Ron writes: > On 4/11/19 9:12 PM, Tom Lane wrote: >> PAM is the usual suggestion > Can you be more specific? I'm suggesting that you use PAM auth https://www.postgresql.org/docs/current/auth-pam.html and then configure the email behavior on the PAM side. The PAM doc link

Re: multiple indexes on the same column

2019-04-12 Thread Tom Lane
ndexes.html regards, tom lane

Re: multiple indexes on the same column

2019-04-12 Thread Tom Lane
Andres Freund writes: > On 2019-04-12 09:51:51 -0400, Tom Lane wrote: >> Tiffany Thang writes: >>> Can someone explain the use of creating multiple indexes on the same >>> column? >> There is none, unless the indexes have different properties (e.g. >&g

Re: Compilation fails with Solaris Studio 12.6

2019-04-14 Thread Tom Lane
Igor Korot writes: > igor@solaris:~/dbhandlerSol/postgresql/src/interfaces/libpq$ dmake > dmake: Fatal error in reader: ../../../src/Makefile.global, line 45: > Unexpected end of line seen > What do I do? Use gmake. regards, tom lane

Re: Inexplicable UPDATE...RETURNING behaviour

2019-04-15 Thread Tom Lane
outer UPDATE, so it'll fail the inner WHERE test. The way I'd recommend fixing it is to put the FOR UPDATE into a WITH to guarantee single execution: WITH dq(uid) AS (SELECT uid ... LIMIT 1) UPDATE queue.some_queue q SET ... FROM dq WHERE q.uid = dq.uid RETURNING q.uid; regards, tom lane

Re: PG10 declarative partitioning that allow null value

2019-04-15 Thread Tom Lane
use a default partition ... regards, tom lane

Re: Error while using pg_dump

2019-04-16 Thread Tom Lane
ld be good to know what PG version this is. regards, tom lane

Re: Alter domain type / avoiding table rewrite

2019-04-16 Thread Tom Lane
27;d only recommend using a domain when there is no other way to get the check you need. PG just doesn't support domains very well (especially before the work I did for v12...) regards, tom lane

Re: SQLSTATE when PostgreSQL crashes during COMMIT statement

2019-04-16 Thread Tom Lane
ases like out-of-memory, but if your app is at the edge of OOM then giving up might be wise anyway. regards, tom lane

Re: Alter domain type / avoiding table rewrite

2019-04-16 Thread Tom Lane
r existing domain type, so maybe it's not bothering you. But I'm worried that going from domain-without-check-constraint to domain-with-check-constraint is going to bite you.) regards, tom lane

Re: text search configuration missing while migration from 8.3 to 9.4

2019-04-16 Thread Tom Lane
re about tsearch2, psql's "\dx" would tell you what extensions are installed in the 8.3 database. regards, tom lane

Re: text search configuration missing while migration from 8.3 to 9.4

2019-04-16 Thread Tom Lane
base textual data should be fine, but if you've got derived tsvector columns or indexes, you might need to recompute those. regards, tom lane

Re: text search configuration missing while migration from 8.3 to 9.4

2019-04-17 Thread Tom Lane
vector'::regtype; but you could also devise some more-portable query involving the information_schema ... regards, tom lane

Re: PostgreSQL ping/pong to client

2019-04-17 Thread Tom Lane
ver reboot, so there's something not very accurate about this description. I suspect what the OP wants is quicker detection of client connection loss, and yes, messing with TCP timeouts and/or keepalive is the only way. regards, tom lane

Re: PostgreSQL ping/pong to client

2019-04-17 Thread Tom Lane
ing about that in the server code proper, we'd basically be reinventing TCP keepalives --- probably badly. And we couldn't do it at all without a protocol version break, because the client-side code would also need to know about it. Just use the keepalive facility. regards, tom lane

<    12   13   14   15   16   17   18   19   20   21   >