[Bucardo-general] function db_getconn(unknown) does not exist at line 13. at line 8

Alex Bahlai baocean at gmail.com
Tue Feb 17 15:16:41 UTC 2009


Hi Joshua

Thanks for your reply.

I've managed to run tests by fixing wrong perl path in perl scripts.

It looks like tests passed though I got following result

DIED. FAILED tests 29-728
 Failed 700/28 tests, -2400.00% okay (less 2 skipped tests: -674 okay,
-2407.14%)
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/01bc.t 255 65280 28 700 ######% 29-728
2 subtests skipped.
Failed 1/1 test scripts, 0.00% okay. -700/28 subtests failed, 2600.00% okay.
make: *** [test_dynamic] Error 2

--------------------------------------------------------------

Below is my test data

## This file contains the connection information needed for "make test"

## Master database. This must be a superuser, as we will create a
bucardo_test database
DBNAME: postgres
DBUSER: bucardo
DBHOST:
DBPORT: 5432
TESTDB: bucardo_test
TESTBC: bucardo_test

## First database
DBNAME1: postgres
DBUSER1: bucardo
DBHOST1:
DBPORT1: 5432
TESTDB1: bucardo_test1
TESTBC1: bucardo_test1

## Second database:
DBNAME2: postgres
DBUSER2: bucardo
DBHOST2:
DBPORT2: 5432
TESTDB2: bucardo_test2
TESTBC2: bucardo_test2

## Third database:
DBNAME3: postgres
DBUSER3: bucardo
DBHOST3:
DBPORT3: 5432
TESTDB3: bucardo_test3
TESTBC3: bucardo_test3
-----------------------------------------------------


Nevertherless when I try to insert a record in to db table of bucardo vb for
configuration Buccardo I got the same message

INSERT INTO db(name, dbname, dbuser) VALUES
('devzone2_ptv','primetv_0_9_7','bucardo');

ERROR: error from Perl function "db_change": error from Perl function
"db_testconn": function db_getconn(unknown) does not exist at line 13. at
line 8.


2009/2/17 Joshua Tolley <josh at endpoint.com>

> On Tue, Feb 17, 2009 at 02:53:14PM +0200, Alex Bahlai wrote:
> >    [Error Code: 0, SQL State: XX000] ERROR: error from Perl function
> >    "db_change": error from Perl function "db_testconn": function
> >    db_getconn(unknown) does not exist at line 13. at line 8. ... 1
> >    statement(s) executed, 0 row(s) affected, exec/fetch time: 0.000/0.000
> sec
> >    [0 successful, 0 warnings, 1 errors]
>
> db_getconn was called, in this case, because a modification was made to the
> Bucardo db table, and the db_change trigger is trying to validate it. Could
> you provide a copy of your t/bucardo.test.data file? That might help track
> the
> problem down.
>
> --
> Joshua Tolley
> End Point Corporation
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iEYEARECAAYFAkmaz2gACgkQRiRfCGf1UMO+dwCcDF4OM6lkqvzlN86quutROVsR
> OJoAoK4cgQXsFTop1iQQ5Yku42xjCjyT
> =xica
> -----END PGP SIGNATURE-----
>
>


-- 
Best regards,
Alex                          mailto:baocean at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://mail.endcrypt.com/pipermail/bucardo-general/attachments/20090217/263c35eb/attachment.html 


More information about the Bucardo-general mailing list