How can I move database from mySQL to postgres ?

Author Message

Tomasz Jakubowski

Friday 21 October 2005 1:48:41 pm

I need move my site form mySQL to postgres.

I deleted data from tables in existing postgres databese. To this table I insert data which I export from mysql (only INSERTs).
Everything is showon on the site.
When I try edit or create object then error message is:

Fatal error: A database transaction in eZ publish failed.

The current execution was stopped to prevent further problems.
You should contact the System Administrator of this site with the information on this page.
The current transaction ID is TRANSID-3cc073021984ac9c0f4855d36044e8ac and has been logged.
Please include the transaction ID and the current URL when contacting the system administrator.

Could somebody help me ?

Ɓukasz Serwatka

Thursday 27 October 2005 12:48:23 am

Hi Tomasz,

Check in var/log/error.log (in eZ publish root folder) which SQL query fails. PostgreSQL installation must have the digest> procedure available.

Look here for more info.
http://ez.no/products/ez_publish_cms/documentation/faq/database/what_is_the_reason_i_get_error_function_digest_character_varying_does_not_exist_on_postgresql

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 21:14:15
Script start
Timing: Jan 30 2025 21:14:15
Module start 'layout'
Timing: Jan 30 2025 21:14:15
Module start 'content'
Timing: Jan 30 2025 21:14:16
Module end 'content'
Timing: Jan 30 2025 21:14:16
Script end

Main resources:

Total runtime1.1176 sec
Peak memory usage8,192.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0044 588.2578151.2266
Module start 'layout' 0.00440.0037 739.4844220.7188
Module start 'content' 0.00811.1087 960.20314,435.7656
Module end 'content' 1.11680.0008 5,395.96887.8125
Script end 1.1176  5,403.7813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2947160.0002
Check MTime0.00120.1081160.0001
Mysql Total
Database connection0.00060.056010.0006
Mysqli_queries1.040193.0703540.0193
Looping result0.00050.0490520.0000
Template Total1.061895.020.5309
Template load0.00210.190820.0011
Template processing1.059694.813520.5298
Template load and register function0.00120.106710.0012
states
state_id_array0.00170.154910.0017
state_identifier_array0.00160.142920.0008
Override
Cache load0.00180.1571150.0001
Sytem overhead
Fetch class attribute can translate value0.00170.151220.0008
Fetch class attribute name0.00180.160630.0006
XML
Image XML parsing0.00200.175920.0010
class_abstraction
Instantiating content class attribute0.00000.000830.0000
General
dbfile0.00420.3783180.0002
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs