CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Installing Civicrm with drupal on Postgresql
Pages: 1 [2]

Author Topic: Installing Civicrm with drupal on Postgresql  (Read 4142 times)

OpenBrian

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4.2.7
  • CMS version: Drupal 7
  • MySQL version: PostgreSQL 8.4
  • PHP version: 5.3.3
Re: Installing Civicrm with drupal on Postgresql
February 19, 2013, 06:21:53 pm
lobo, Also i'd argue that if you've have 4 developers in the past 3 years try to port CiviCRM to PG, then you probably have 400 people who are interested in using it.  Does CiviCRM have a place to propose feature requests and vote them up?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Installing Civicrm with drupal on Postgresql
February 19, 2013, 07:53:49 pm

You can post feature requests here:

http://forum.civicrm.org/index.php/board,18.0.html

Note that we dont have a voting mechanism currently in use (we experimented with uservoice a few years back). The project is evolving towards more of a "scratch your own itch" and contribute it back for the greater good, which seems exactly what you are doing.

While it would be great if all projects can support multiple databases, there is not enough developer time / resources / energy / expertise for this to happen. Supporting postgres would be definitely a very good thing, i just wanted to caution you on the magnitude of the task

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

asuttonsd

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Drupal 7.18
  • MySQL version: 5.5
  • PHP version: 5
Re: Installing Civicrm with drupal on Postgresql
February 27, 2013, 03:35:50 pm
Not sure if I should post here, or start a new thread. This issue is related to having Drupal (Views) installed on PostgreSQL database and querying the MySQL CiviCRM database.

I am trying to simply create a group in CiviCRM (of contacts) and display in Views (and eventually OpenLayers). I have been able to get all contacts to display fine in Views, but when I try to add the Contacts:Groups field (or filter) it gives me an error:

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'civicrm_contact.group' in 'where clause'

Here is the SQL generated:

SELECT civicrm_contact.id AS id
FROM
{civicrm_contact} civicrm_contact
WHERE (( (civicrm_contact.group IS NOT NULL ) ))

It seems the problem is that it is not querying the correct database table. When I look in PhpMyAdmin, it seems the table and field that should be queried is civicrm_group_contact.group_id

Perhaps this is a fundamental difference in how Civi installs on these different databases. Is there a way to fix this?

Thanks you very much for your time.

Aaron

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Installing Civicrm with drupal on Postgresql
February 27, 2013, 04:44:20 pm

I think this is most likely an issue with the civicrm integration with views and not of pgsql/mysql stuff

the views integration code has been looking for a maintainer for the past year or so with no success :(

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

asuttonsd

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Drupal 7.18
  • MySQL version: 5.5
  • PHP version: 5
Re: Installing Civicrm with drupal on Postgresql
February 27, 2013, 04:55:31 pm
Thanks for the response Lobo.

Do you know if there is some kind of list or table that defines the databases and how to connect? I am curious why Views would try to use the wrong table name. Do you know where this info originates?

Thanks. If you can help me narrow my search for the problem, that would be awesome.

Aaron

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Installing Civicrm with drupal on Postgresql
February 27, 2013, 05:04:31 pm

all the views code is here:

drupal/modules/views

check

civicrm.views.inc and search for civicrm_group and civicrm_group_contact

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Installing Civicrm with drupal on Postgresql

This forum was archived on 2017-11-26.