Re: Upgrading from Postgresql 9.1 to 10

2018-02-15 Thread Michael Paquier
On Wed, Feb 14, 2018 at 07:47:55AM -0700, David G. Johnston wrote: > Zero downtime is only possible by standing up a hot-standby then failing > over to it. Same-server upgrade you can do via pg_upgrade but it does > involve downtime. There are lots of material and options online, including > the

Re: pgBackRest backup from standby

2018-02-18 Thread Michael Paquier
On Sun, Feb 18, 2018 at 06:34:46PM -0600, Don Seiler wrote: > Looking to use pgBackRest to take a backup from a hot standby. I'm reading > that pgBackRest still needs to connect to the primary and copy some files. > My questions are: > > >1. What files does it need to copy? Config files? WAL

Re: pgBackRest backup from standby

2018-02-18 Thread Michael Paquier
On Sun, Feb 18, 2018 at 06:48:30PM -0600, Don Seiler wrote: > On Sun, Feb 18, 2018 at 6:43 PM, Michael Paquier wrote: >> You may want to contact the maintainers directly through github where >> the project is maintained: >> https://github.com/pgbackrest/pgbackrest > >

Re: Error when compiling postgresql 9.6.7 with Visual Studio 15.5.6

2018-02-19 Thread Michael Paquier
On Mon, Feb 19, 2018 at 04:17:18PM -0500, Tom Lane wrote: > Well, as far as I'm concerned the patch that was proposed there is > far too fragile to be acceptable. We need to find out what the > Microsoft-approved way of getting the information is. Assuming that > we know the contents of non-expor

Re: initdb when data/ folder has mount points

2018-02-21 Thread Michael Paquier
On Wed, Feb 21, 2018 at 07:56:38PM -0500, David Steele wrote: > On 2/21/18 7:01 PM, Tom Lane wrote: >> For pg_log, just put it somewhere else and set the appropriate >> configuration option to say where to write the postmaster log files. >> Or you could use a symlink, like the solution for pg_xlog,

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

2018-02-22 Thread Michael Paquier
On Thu, Feb 22, 2018 at 08:00:45PM -0500, Demitri Muna wrote: > Ah, I wasn’t aware of implicit coercion. Yes, that solves the problem > perfectly, thanks. > > Out of curiosity, how does one read a numeric type from within a C > extension (i.e. get a number value out of the Datum type)? I ask as I

Re: is libpq and openssl 1.1.* compatible?

2018-02-25 Thread Michael Paquier
On Sun, Feb 25, 2018 at 09:06:39PM -0800, Adrian Klaver wrote: > On 02/25/2018 08:36 PM, Konstantin Izmailov wrote: >> I wonder if I'm not doing smth right, or libpq is not compatible with >> openssl 1.1? Please help. The answer to the second question is that libpq is compatible with OpenSSL 1.1.0

Re: is libpq and openssl 1.1.* compatible?

2018-02-26 Thread Michael Paquier
On Mon, Feb 26, 2018 at 12:30:38AM -0700, Konstantin Izmailov wrote: > Let me ask this differently: can Visual Studio 2013/2017 compile libpq with > openssl 1.1 support? Under Windows? The answer to this question should be yes. (Please note that no Windows buildfarm machines use openssl 1.1.0 as

Re: Empty query_id in pg_stat_activity

2024-12-09 Thread Michael Paquier
On Fri, Dec 06, 2024 at 04:44:29PM +0100, Erik Wienhold wrote: > Another possibility is that the session just disabled compute_query_id: > https://postgr.es/m/472115375.225506.1683812791906%40office.mailbox.org Or possibly this uses a path where we're not aggressive enough the query ID while we sh

Re: pg_stat_statements has duplicate entries for the same query & queryId

2025-05-19 Thread Michael Paquier
On Mon, May 19, 2025 at 09:07:35AM +0200, Daniel Verite wrote: > That looks normal. The unicity to expect is on > (queryid, userid, dbid, toplevel). > > From https://www.postgresql.org/docs/current/pgstatstatements.html : > > This view contains one row for each distinct combination of database

Re: The same query_id for different queries

2025-07-01 Thread Michael Paquier
On Tue, Jul 01, 2025 at 10:24:14AM +0300, Maksim Gorkov wrote: > 2064869707185898531;'BEGIN;...' -- the full text in query1.sql attachment > 2064869707185898531;'COMMIT;' > > there is another example, if required I can send it for review. > > Why does this happen and how can it be fixed? Hard to

<    1   2   3   4