Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YWSQT-0006TN-9Z for pgsql-bugs@arkaria.postgresql.org; Fri, 13 Mar 2015 16:27:05 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YWSQS-0006bu-FS for pgsql-bugs@arkaria.postgresql.org; Fri, 13 Mar 2015 16:27:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YWSQR-0006bl-Cv for pgsql-bugs@postgresql.org; Fri, 13 Mar 2015 16:27:03 +0000 Received: from mail-wi0-x235.google.com ([2a00:1450:400c:c05::235]) by magus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YWSQM-0006xW-Rv for pgsql-bugs@postgresql.org; Fri, 13 Mar 2015 16:27:02 +0000 Received: by widfb4 with SMTP id fb4so13456104wid.0 for ; Fri, 13 Mar 2015 09:26:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:reply-to:to:cc:date:in-reply-to:references :content-type:mime-version:content-transfer-encoding; bh=ogVoTCYBit0edb+/mWYozO9yDWadJAw73axQ9jMGNzw=; b=xAsfvll5lQUhLAic4CJXoGe6WNsYvdnQixlLeJVb0nkMC8R4z6v3y6WmM2nbaBp7KL UakLem20pHiD6181mOm9MtIzXNhfgEQBo3WNIWElBe1YI1UI1qK+xiMQJuxDM1mOpPTg n9DWNt137N4OLnhjjDi89oDA3J9BSchAh0DIV0ZwcHBLx0U/8iamfc4N8FoQXuknyK/P RosEF4fli7Dj5ZFjLerKVj13KwAXnQRZexOK1pNRIm7xqamfNpgHSDn1bY93hBhuTQz/ 53JZ/c86cjeJi2rOjImcScpVYsIKFYO6RPwmL+Lmt+AckpR4Q0Hfhrji4ODJaATQysKh 0hEg== X-Received: by 10.180.97.106 with SMTP id dz10mr97324916wib.33.1426264016485; Fri, 13 Mar 2015 09:26:56 -0700 (PDT) Received: from enterprisedb01 (84.125.177.156.dyn.user.ono.com. [84.125.177.156]) by mx.google.com with ESMTPSA id p1sm3434267wib.23.2015.03.13.09.26.55 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Mar 2015 09:26:55 -0700 (PDT) Message-ID: <1426264009.7110.20.camel@gmail.com> Subject: Re: BUG #12851: Failed to initial Jackrabbit JCR Repository From: jaime soler Reply-To: jaime.soler@gmail.com To: chhui@ps.asl.com.hk Cc: pgsql-bugs@postgresql.org Date: Fri, 13 Mar 2015 17:26:49 +0100 In-Reply-To: <20150311165556.4035.21117@wrigleys.postgresql.org> References: <20150311165556.4035.21117@wrigleys.postgresql.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.10-0ubuntu1~14.10.1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org El mié, 11-03-2015 a las 16:55 +0000, chhui@ps.asl.com.hk escribió: > The following bug has been logged on the website: > > Bug reference: 12851 > Logged by: Harry Hui > Email address: chhui@ps.asl.com.hk > PostgreSQL version: 9.4.0 > Operating system: Fedora 20 x86 64Bit > Description: > > I had set up PostgreSQL 9.4 DBR version on Fedora 20. There are two > instances of PostgreSQL to perform the replication. This function was > working fine. However, I started a Jackrabbit JCR repository with > persistence manager > [org.apache.jackrabbit.core.persistence.bundle.PostgreSQLPersistenceManager]. > It could not start with PostgreSQL DBR. > It throw exception below. This exception only happened in DBR version. > Normal PostgreSQL 4.0 is working fine with Jackrabbit. > 11.03.2015 11:12:48 DEBUG localhost-startStop-1 [StatManager.init:48] > Started StatManager. QueryStat is enabled false > 11.03.2015 11:12:48 INFO localhost-startStop-1 [RepositoryImpl.:256] > Starting repository... > 11.03.2015 11:13:06 ERROR localhost-startStop-1 > [ConnectionHelper$RetryManager.doTry:548] Failed to execute SQL (stacktrace > on DEBUG log level): org.postgresql.util.PSQLException: ERROR: Cannot UPDATE > table repository_fsentry because it does not have primary key. > Hint: Add primary key to the table > 11.03.2015 11:13:06 DEBUG localhost-startStop-1 > [ConnectionHelper$RetryManager.doTry:549] Failed to execute SQL > org.postgresql.util.PSQLException: ERROR: Cannot UPDATE table > repository_fsentry because it does not have primary key. > Hint: Add primary key to the table This is not a postresql's bug, is only a restriction of BDR extension as you can read in its wiki: https://wiki.postgresql.org/wiki/BDR_Command_Restrictions#Replication_of_UPDATE_or_DELETE_on_a_table_without_a_PRIMARY_KEY > > -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs