Ticket #924 (closed task: fixed)

Opened 3 years ago

Last modified 21 months ago

Remove Postgres Schema before Release

Reported by: chrismeller Owned by:
Priority: blocker Milestone: 0.6.1
Component: Habari Core Software Version: SVN
Keywords: reporter_feedback Cc: chris@…

Description

Since we don't have a resident Postgres guru and the schema hasn't been updated or tested to work with the ACL changes, Postgres should be removed from maakanga before release.

Simply deleting the pgsql directory under system/schema/ should be all that's needed.

Attachments

pgsupport-habari-0.6.1.patch Download (4.9 KB) - added by mnacos 3 years ago.
a few changes here and there to fix postgresql warnings

Change History

comment:1 Changed 3 years ago by rickc

If this is done, removing/commenting out references to Postgres in the installer should be done, too, so people don't try to install it.

comment:2 Changed 3 years ago by chrismeller

  • Component changed from -none- to Habari Core Software

comment:3 Changed 3 years ago by chrismeller

  • Status changed from new to closed
  • Resolution set to wontfix

comment:4 Changed 3 years ago by chrismeller

  • Status changed from closed to reopened
  • Resolution wontfix deleted
  • Milestone changed from 0.6 to 0.6.1

Changed 3 years ago by mnacos

a few changes here and there to fix postgresql warnings

comment:5 in reply to: ↑ description Changed 3 years ago by mnacos

Replying to chrismeller:

Since we don't have a resident Postgres guru and the schema hasn't been updated or tested to work with the ACL changes, Postgres should be removed from maakanga before release.

Simply deleting the pgsql directory under system/schema/ should be all that's needed.

Please let me be your Postgresql guru :-) Postgres now works for me with a few harmless changes. Please see the attached patch file, check the patch and mark this ticket as worksforme :-)

comment:6 Changed 3 years ago by gsnedders

  • Status changed from reopened to closed
  • Resolution set to notabug

We've fixed PostgreSQL, so I guess this should be notabug.

comment:7 Changed 22 months ago by chrismeller

I've got a question related to the patch, which ringmaster added in r3530, so hopefully someone will answer here - if not I'll post to -dev.

In both of our PDO::prepare() calls (lines 265 and 340 in the patch) we're now passing the PDO::ATTR_EMULATE_PREPARES attribute. In the MySQLConnection class, we set this on connection.

My question is really 3-part:

First, does Postgres need this? I thought Postgres supported prepared statements natively, which would mean we don't need PDO to emulate them (like you do for MySQL).

Second, is there a need or some added value in passing the argument to each prepare() call vs. once on connection? The PDO documentation can be very confusion / contradictory / spotty / etc., so I honestly have no clue when or where it should be passed.

Finally, why is this in DatabaseConnection? If it's PG-specific we need to abstract out the method (or come up with some other manner of doing it, rather than duplicating the entire method), since we're now emulating prepared statements on all platforms - even those that natively support it. Right now (assuming PG does not) that isn't any, but adding Oracle support would change that.

comment:8 Changed 22 months ago by chrismeller

  • Cc chris@… added

comment:9 Changed 22 months ago by chrismeller

  • Keywords reporter_feedback added
  • Status changed from closed to reopened
  • Resolution notabug deleted

comment:10 Changed 21 months ago by michaeltwofish

comment:11 Changed 21 months ago by chrismeller

Fixed in r4223.

comment:12 Changed 21 months ago by chrismeller

  • Status changed from reopened to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.