<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Liferay 7.0 does not work with Postgres</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=48429215" />
  <subtitle>Liferay 7.0 does not work with Postgres</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=48429215</id>
  <updated>2026-04-03T23:24:47Z</updated>
  <dc:date>2026-04-03T23:24:47Z</dc:date>
  <entry>
    <title>RE: Liferay 7.0 does not work with Postgres</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=48433860" />
    <author>
      <name>Thomas Kellerer</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=48433860</id>
    <updated>2015-01-30T14:50:54Z</updated>
    <published>2015-01-30T14:50:54Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;div class="quote-title"&gt;David H Nebinger:&lt;/div&gt;&lt;blockquote&gt;Earlier in the startup process is it reporting the correct Hibernate dialect?&lt;/blockquote&gt;Yes it did. &lt;br&gt;&lt;pre&gt;&lt;code&gt;Determine dialect for PostgreSQL 9
Found dialect org.hibernate.dialect.PostgreSQLDialect&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote&gt;Oh, and BTW we're not really debugging LR7 here in the forums, but please open bugs in jira so Liferay will know about them.&lt;/blockquote&gt;&lt;br&gt;OK, done: https://issues.liferay.com/browse/LPS-53193&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Thomas Kellerer</dc:creator>
    <dc:date>2015-01-30T14:50:54Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay 7.0 does not work with Postgres</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=48432572" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=48432572</id>
    <updated>2015-01-30T14:24:06Z</updated>
    <published>2015-01-30T14:24:06Z</published>
    <summary type="html">Earlier in the startup process is it reporting the correct Hibernate dialect?&lt;br /&gt;&lt;br /&gt;Oh, and BTW we&amp;#39;re not really debugging LR7 here in the forums, but please open bugs in jira so Liferay will know about them.</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2015-01-30T14:24:06Z</dc:date>
  </entry>
  <entry>
    <title>Liferay 7.0 does not work with Postgres</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=48429214" />
    <author>
      <name>Thomas Kellerer</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=48429214</id>
    <updated>2015-01-30T13:55:02Z</updated>
    <published>2015-01-30T13:55:02Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;I wanted to try out Liferay 7.0 but the installation fails when using Postgres as the database:&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;13:50:04,371 INFO  [http-bio-8080-exec-8][VerifyProcess:79] Completed verification process com.liferay.portal.verify.VerifyGroupedModel in 10ms
13:50:04,372 INFO  [http-bio-8080-exec-8][VerifyProcess:69] Verifying com.liferay.portal.verify.VerifyJournal
13:50:04,553 ERROR [http-bio-8080-exec-8][JDBCExceptionReporter:82] ERROR: operator does not exist: character varying = bigint_  Hint: No operator matches the given name and argument type(s). You might need to add explicit type casts._  Position: 1762 [Sanitized]
13:50:04,557 INFO  [http-bio-8080-exec-8][VerifyProcess:79] Completed verification process com.liferay.portal.verify.VerifyJournal in 185ms
13:50:04,558 INFO  [http-bio-8080-exec-8][VerifyProcess:79] Completed verification process com.liferay.portal.verify.VerifyProcessSuite in 1022ms
13:50:23,252 ERROR [http-bio-8080-exec-4][CompanyThreadLocal:64] com.liferay.portal.NoSuchCompanyException: No Company exists with the primary key 20153
com.liferay.portal.NoSuchCompanyException: No Company exists with the primary key 20153
	at com.liferay.portal.service.persistence.impl.CompanyPersistenceImpl.findByPrimaryKey(CompanyPersistenceImpl.java:1643)
	at com.liferay.portal.service.persistence.impl.CompanyPersistenceImpl.findByPrimaryKey(CompanyPersistenceImpl.java:1660)
	at com.liferay.portal.service.base.CompanyLocalServiceBaseImpl.getCompany(CompanyLocalServiceBaseImpl.java:238)
&lt;/code&gt;&lt;/pre&gt; &lt;br&gt;&lt;br&gt;The culprit is this error message:&lt;br&gt;&lt;br&gt;&lt;blockquote&gt;ERROR: operator does not exist: character varying = bigint&lt;br&gt;    Hint: No operator matches the given name and argument type(s). You might need to add explicit type casts&lt;/blockquote&gt;&lt;br&gt;Which means the database is not initialized correctly and the whole site doesn't work:&lt;br&gt;&lt;br&gt;I am using: &lt;br&gt;&lt;ul&gt;&lt;li&gt;Liferay 7.0 M3&lt;/li&gt;&lt;li&gt;Postgres 9.4&lt;/li&gt;&lt;li&gt;Windows 7&lt;/li&gt;&lt;li&gt;Java 1.7&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Thomas Kellerer</dc:creator>
    <dc:date>2015-01-30T13:55:02Z</dc:date>
  </entry>
</feed>
