Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e4RUu-0002pc-B0 for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Oct 2017 13:01:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e4RUt-0000Qw-Bg for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Oct 2017 13:01:27 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e4RTC-0005rQ-Bb for pgsql-hackers@postgresql.org; Tue, 17 Oct 2017 12:59:42 +0000 Received: from mail-wr0-x231.google.com ([2a00:1450:400c:c0c::231]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1e4RT7-0004Fd-9M for pgsql-hackers@postgresql.org; Tue, 17 Oct 2017 12:59:41 +0000 Received: by mail-wr0-x231.google.com with SMTP id o44so1570659wrf.11 for ; Tue, 17 Oct 2017 05:59:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=XISkjsibyT3EessIfb+4lD10o4QllMdJ3IRIU0uXd3k=; b=kTPOpIX+hJfpnpM84KsGKN4SWqnGSkR/q5HHKtNFSpG2rJ5uBxxA25ac9VPSF57Of+ r9lGH68+5htnJ0V7dsaI1bVqnLejxj8zktGvA2m7ybOygfDsjnUIO6wmaJHfETYu1nlR OurabmBGLzUFsXqQElCVpy42gJArevKGdzFqZMCaXEAbwic6WI2nd9sBvM/txzsOBPxc kR7oF698ffyYVtITA0Ok+Z1Bb+qoN7o8PL6rEVDKUNXDiHWDCXBxo1ErX2w9YfJtHPUd DCOrz/WGzrjmOqlNOCZ4rrIn/5b9na5kHMFNEjex/j0gHy0jmE1h747hVjBVLHq+icKm 9aNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=XISkjsibyT3EessIfb+4lD10o4QllMdJ3IRIU0uXd3k=; b=Gtl43V3gtenxYQPWVpA6HOvm0iNfTacFSnu7/0jjUnAkQd0jst323EEZlGwMjlBJJM 0R2csyofXL61U4rVZM67mPKqLrANgpBCdTyDCj0kTeqgOdWyZAjP1j4VEdGppWIg+5ab gS2UlrnRcVXDBJ/qgrK4OIxTzc4ubMyzBCcuxO8gGl3NjX83ei8KniE87KsQ6lhxccfM T77e1wdjrjEVxFJGCv/4s8osiZnAOHEzwBG6xn39/MDDVryPMV62qqJiONpyHtL7rFoW D4gxliVgZB8ynNAfepyblNw1EN5ymDZUk1tIyzgsWi9oexIoiQ4tJ8lDcbf45fQPyMp+ +e9Q== X-Gm-Message-State: AMCzsaVQ52qeL/JzrU3r4SqaHobB9mfDuCD36PTKLrVsET8r8sp6dZ90 ZvzTV6e4xSladEtmkHAlz0tzXAbdJTrQ/vHrDUIS0h8K9DcFUsj9NMAyUrr/sR7DLdJh8LX5fhD lZKXdTxHdmUXsLM43alxnJJ85O1Olg+aOJfhV5L3b4SseZy5OuRRZ1pflRQL47IClBqF442B4Xt ul3hIg0q0/cJY= X-Google-Smtp-Source: ABhQp+RdwiAM3nld8XZq45DtZ3jYMmCRIO49MhAaRcwRGvHhYNbmf06+9mCxBhcHcIbrch5s+Xtgbw== X-Received: by 10.223.196.221 with SMTP id o29mr3579246wrf.210.1508245175559; Tue, 17 Oct 2017 05:59:35 -0700 (PDT) Received: from [10.137.2.17] (cst-prg-13-92.cust.vodafone.cz. [46.135.13.92]) by smtp.gmail.com with ESMTPSA id p4sm9681265wrf.36.2017.10.17.05.59.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Oct 2017 05:59:34 -0700 (PDT) Subject: Re: SIGSEGV in BRIN autosummarize To: Justin Pryzby , Alvaro Herrera Cc: pgsql-hackers@postgresql.org References: <20171014224220.GB22678@telsasoft.com> <20171017105916.3rvmznxnuphn3uph@alvherre.pgsql> <20171017122922.GC13880@telsasoft.com> From: Tomas Vondra Message-ID: <8656d7ab-84f7-dc0f-0c01-5fda13e447d5@2ndquadrant.com> Date: Tue, 17 Oct 2017 14:59:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20171017122922.GC13880@telsasoft.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 10/17/2017 02:29 PM, Justin Pryzby wrote: > On Tue, Oct 17, 2017 at 12:59:16PM +0200, Alvaro Herrera wrote: >> Anyway, can give this patch a try? > > I've only compiled postgres once before and this is a production environment > (althought nothing so important that the crashes are a serious concern either). > > Is it reasonable to wget the postgres tarball, apply the patch, and run the > compiled postgres binary from the source tree, without running make install or > similar ? Otherwise, would it be good enough to copy the postgres binary to > /usr/pgsql-10/bin (and reinstall the binary package later) ? > You don't have to install the binaries to the same location, i.e. you can keep both the current and modified binaries. ./configure --prefix=/path/to/alternative/binaries --enable-debug CFLAGS="..." To get the same compilation options you can run pg_config, look for CONFIGURE line and then just modify add --prefix option. And after `make install` you can add it to $PATH and start the server using those binaries. $ export PATH=/path/to/alternative/binaries/bin:$PATH $ which pg_ctl $ pg_ctl -D $DATADIR stop $ pg_ctl -D $DATADIR start regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers