Quantcast
Channel: perl.dbd.pg
Viewing all 134 articles
Browse latest View live

Problem building DBD::Pg under OS X 10.11 (El Capitan) (2 messages)

$
0
0
When I go to make this module I get the following relative rpath error on the ‘make test’. Running Perl 5.18, DBD::Pg 3.5.1 (cpan version). libpq.5.dylib is in /Library/PostgreSQL/9.4/lib.

GINITDB="/Library/PostgreSQL/9.4/bin/initdb" PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00_signature.t .... skipped: Set the environment variable TEST_SIGNATURE to enable this test
t/00basic.t ......... 1/3
# Failed test 'use DBD::Pg;'
# at t/00basic.t line 17.
# Tried to use 'DBD::Pg'.
# Error: Can't load '/Users/mydir/Perl_Modules/DBD-Pg-3.5.1/blib/arch/auto/DBD/Pg/Pg.bundle' for module DBD::Pg: dlopen(/Users/mydir/Perl_Modules/DBD-Pg-3.5.1/blib/arch/auto/DBD/Pg/Pg.bundle, 2): Library not loaded: libpq.5.dylib
# Referenced from: /Users/mydir/Perl_Modules/DBD-Pg-3.5.1/blib/arch/auto/DBD/Pg/Pg.bundle
# Reason: unsafe use of relative rpath libpq.5.dylib in /Users/mydir/Perl_Modules/DBD-Pg-3.5.1/blib/arch/auto/DBD/Pg/Pg.bundle with restricted binary at /System/Library/Perl/5.18/darwin-thread-multi-2level/DynaLoader.pm line 194.
# at (eval 8) line 2.
# Compilation failed in require at (eval 8) line 2.
# BEGIN failed--compilation aborted at (eval 8) line 2.
# CCFLAGS: q[-arch i386 -arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector -DPGLIBVERSION=90400 -DPGDEFPORT=5432]
# INC: q[-I/Library/PostgreSQL/9.4/include -I/System/Library/Perl/Extras/5.18/darwin-thread-multi-2level/auto/DBI]
# LIBS: [q[-L/Library/PostgreSQL/9.4/lib -lpq -lm]]
Bailout called. Further testing stopped: Cannot continue without DBD::Pg
FAILED--Further testing stopped: Cannot continue without DBD::Pg
make: *** [test_dynamic] Error 255

Thanks,
-Adam Wizon




Trying to install and configure the DBD::Pg but (2 messages)

$
0
0
hello
when i run the "apt-get install postgresql-dev" i get the not found,
what is the correct package name for the development package for
postgresql, the instruction in readme file is not working.

--
CHRIS MARGACH

Binding strings with utf-8 octet sequences with 3.x (2 messages)

$
0
0
Hi,

I'm wondering about a change in 3.x concerning UTF-8.

When comparing the behaviors of the DBD::Pg version that ships with
Ubuntu 14.04 (libdbd-pg-perl 2.19.3-2) against a self-compiled 3.5.3,
I notice that the bind parameters now are interpreted differently,
independantly of pg_enable_utf8's value.

For instance, consider the following code, ran against an UTF-8
database:

$dbh->do("SET client_encoding TO UTF8");
$dbh->{pg_enable_utf8}=0;
binmode(STDOUT);

$p = "\xc3\xa9"; # U+00C9 as an utf-8 octet sequence
$sth = $dbh->prepare("SELECT ?,length(?),octet_length(?)",
{pg_server_prepare=>0});
$sth->execute($p,$p,$p);
@r = $sth->fetchrow_array;
printf "v%s, sending %s, getting back: %s %s %s\n",
$DBD::Pg::VERSION, $p, @r;

With DBD::Pg 2.19.3 the client output is:
v2.19.3, getting back: é 1 2
and the server log (log_statement=all), seen on a utf-8 terminal:
statement: SELECT 'é',length('é'),octet_length('é')
This is fine and what I expect.

With DBD::Pg 3.5.3, the client output is:
v3.5.3, sending é, getting back: é 2 4
server log (log_statement=all), seen on a utf-8 terminal
statement: SELECT 'é',length('é'),octet_length('é')

My expectation was that 3.x would behave like 2.x with
the above code, especially when pg_enable_utf8 is 0.
It seems that with the newer version, it results
in double encoding the parameter, as shown by
the character and octet lengths at the server end.

Anyway, is the above output the expected behavior?

And is there a way to make it just pass-through the parameters
that don't have the utf-8 flag set?


Best regards,
--
Daniel Vérité
PostgreSQL-powered mailer: http://www.manitou-mail.org
Twitter: @DanielVerite

No error message set after executing a simple SELECT statement twice (3 messages)

$
0
0
I am porting over a Perl script that was using the sqlite3 DBD driver
to now use the Pg one. I'm on CentOS 6.7 using perl-5.10.1-141 and
perl-DBD-Pg-2.15.1 (I know, it's old).

My script has the following SQL statement executed like so:

my $sql = "SELECT col1,col2 FROM tbl WHERE col3 =" . $dbh->quote($var) . ";"

etc.

I am connecting to the database via;

"DBI:Pg:dbname=tapedb;host=localhost;sslmode=allow;", username, "",
{AutoCommit => 0, RaiseError => 1, PrintError => 1, pg_server_prepare
=> 0} etc.

I tried using "sslmode=disbabled" and that had no effect.

Anyway, the first time this query gets execute via:

L723 my $sth = $dbh->prepare($sql);
L724 $sth->execute();

everything works fine, I see the results passed back. Life is good.

However, the second time it executes it throws an exception:

DBD::Pg::st execute failed: at somescript line 724, <$fref> line 8.
DBD::Pg::st execute failed: at somescript line 724, <$fref> line 8.
at somescript line 724

I see no error message. I see nothing in $sth->errstr etc. I also see
no error message generated in my
/var/lib/pgsql/data/pg_log/postgresql-Mon.log log file well.

The $sql string is indeed valid and works fine using the standard
"/usr/bin/psql"command (it's a very simple statement just searching on
a string).

Does anyone here have a CLUE on how I can debug this?

-aps (Alex)

Is possible cancel cycle of reading pg_getcopydata? (4 messages)

$
0
0
Hi all

I use synchronnous function pg_getcopydata. Sometimes I need to leave
cycle immediately. The exit is working, but it produce FATAL error
"connection to client lost". Is it possible to reset connection and
leaving without this message?

Regards

Pavel Stehule

BD::Pg::db do failed: ERROR: (2 messages)

$
0
0
I'm using PostgreSQL 9.2.15-1PGDG.rhel6 on a Centos 6.7 64 Bits.

Hi all,

Got an issue using pg_sample:

When executing the command:

> ./pg_sample dbname --data-only --file=test.sql --limit="ja_admins = 1000"

I got the following error:

> Creating table "
>
> *pg_sample"."pg_catalog_pg_statistic" DBD::Pg::db do failed: ERROR: column
> "stavalues1" has pseudo-type "anyarray" at ./pg_sample line
> 296main::__ANON_**main::__ANON_*('DBD::Pg::db do failed: ERROR: column
> "stavalues1" has pseudo...', 'DBI::db=HASH(0xfdec08)', undef) called at
> ./pg_sample line 538
> Dropping sample schema _pg_sample
> Done.


Perl-DBD-pg-2.19.3 - Installed manually by:


1. perl Makefile.PL
2. make
3. make test
4. make install

Source: https://github.com/bucardo/dbdpg


What can I do to solve this issue?

Thanks!

Compliation of DBD::Pg fails (3 messages)

$
0
0
Dear all

I am tring to get PostgreSQL together with some web server applications like DAViCal running on my NAS QNAP TS-251+. Therefore I need the perl module DBD::Pg.

I have installed perl 5.22.1 for x86_64-linux-glibc and a whole range of moduls for PorstgreSQL etc. (complete list see at the end).

The installation was all running through sucessfull for YAML, but not for DBD::PG

When I try to install DBD::Pg, I get following feedback and error message:
> cpan[1]> install DBD::Pg
> Reading '/share/CACHEDEV1_DATA/.cpan/Metadata' Database was generated on Thu, 14 Apr 2016 16:53:55 GMT Running install for module 'DBD::Pg'
> Checksum for /share/CACHEDEV1_DATA/.cpan/sources/authors/id/T/TU/TURNSTEP/DBD-Pg-3.5.3.tar.gz ok
> Scanning cache /share/CACHEDEV1_DATA/.cpan/build for sizes ............................................................................DONE
> Configuring T/TU/TURNSTEP/DBD-Pg-3.5.3.tar.gz with Makefile.PL Configuring DBD::Pg 3.5.3
> PostgreSQL version: 90404 (default port: 5432) POSTGRES_HOME: (not set) POSTGRES_INCLUDE: /share/CACHEDEV1_DATA/.qpkg/Entware-ng/include POSTGRES_LIB: /share/CACHEDEV1_DATA/.qpkg/Entware-ng/lib OS: linux
> Checking if your kit is complete...
> Looks good
> Using DBI 1.634 (for perl 5.022001 on x86_64-linux-glibc) installed in /opt/lib/perl5/5.22/auto/DBI/ Generating a Unix-style Makefile Writing Makefile for DBD::Pg
> Writing MYMETA.yml and MYMETA.json TURNSTEP/DBD-Pg-3.5.3.tar.gz /share/CACHEDEV1_DATA/.qpkg/Entware-ng/bin/perl5.22.1 Makefile.PL -- OK Running make for T/TU/TURNSTEP/DBD-Pg-3.5.3.tar.gz cp lib/Bundle/DBD/Pg.pm blib/lib/Bundle/DBD/Pg.pm cp Pg.pm blib/lib/DBD/Pg.pm
> Running Mkbootstrap for DBD::Pg ()
> chmod 644 "Pg.bs"
> make: *** No rule to make target '/opt/lib/perl5/5.22/auto/DBI/Driver_xst.h', needed by 'Pg.xsi'. Stop. TURNSTEP/DBD-Pg-3.5.3.tar.gz /opt/bin/make -- NOT OK
> Failed during this command: TURNSTEP/DBD-Pg-3.5.3.tar.gz : make NO


I also tryied the Bundle::DBD::Pg what resultat also in a failure:
> [/] # perl -MCPAN -e 'install Bundle::DBD::Pg' Reading '/share/CACHEDEV1_DATA/.cpan/Metadata' Database was generated on Thu, 14 Apr 2016 16:53:55 GMT Checksum for /share/CACHEDEV1_DATA/.cpan/sources/authors/id/T/TU/TURNSTEP/DBD-Pg-3.5.3.tar.gz ok
> DBI is up to date (1.634).
> Running install for module 'DBD::Pg' TURNSTEP/DBD-Pg-3.5.3.tar.gz
> Has already been unwrapped into directory /share/CACHEDEV1_DATA/.cpan/build/DBD-Pg-3.5.3-Wb5kTe
> Configuring T/TU/TURNSTEP/DBD-Pg-3.5.3.tar.gz with Makefile.PL Configuring DBD::Pg 3.5.3
> PostgreSQL version: 90404 (default port: 5432) POSTGRES_HOME: (not set) POSTGRES_INCLUDE: /share/CACHEDEV1_DATA/.qpkg/Entware-ng/include POSTGRES_LIB: /share/CACHEDEV1_DATA/.qpkg/Entware-ng/lib OS: linux
> Checking if your kit is complete...
> Looks good
> Using DBI 1.634 (for perl 5.022001 on x86_64-linux-glibc) installed in /opt/lib/perl5/5.22/auto/DBI/ Generating a Unix-style Makefile Writing Makefile for DBD::Pg
> Writing MYMETA.yml and MYMETA.json TURNSTEP/DBD-Pg-3.5.3.tar.gz /share/CACHEDEV1_DATA/.qpkg/Entware-ng/bin/perl5.22.1 Makefile.PL -- OK Running make for T/TU/TURNSTEP/DBD-Pg-3.5.3.tar.gz cp Pg.pm blib/lib/DBD/Pg.pm
> cp lib/Bundle/DBD/Pg.pm blib/lib/Bundle/DBD/Pg.pm Running Mkbootstrap for DBD::Pg () chmod 644 "Pg.bs"
> make: *** No rule to make target '/opt/lib/perl5/5.22/auto/DBI/Driver_xst.h', needed by 'Pg.xsi'. Stop. TURNSTEP/DBD-Pg-3.5.3.tar.gz /opt/bin/make -- NOT OK


What is wrong or missing? Why does compiling not succeed?


Regards
Philipp

Complete list of installed of installed Perl modules:
> perl - 5.22.1-2
> perl-dbi - 1.634-1
> perl-dev - 5.22.1-2
> perlbase-autosplit - 5.22.1-2
> perlbase-b - 5.22.1-2
> perlbase-base - 5.22.1-2
> perlbase-benchmark - 5.22.1-2
> perlbase-bytes - 5.22.1-2
> perlbase-class - 5.22.1-2
> perlbase-config - 5.22.1-2
> perlbase-cpan - 5.22.1-2
> perlbase-cwd - 5.22.1-2
> perlbase-data - 5.22.1-2
> perlbase-db - 5.22.1-2
> perlbase-db-file - 5.22.1-2
> perlbase-devel - 5.22.1-2
> perlbase-digest - 5.22.1-2
> perlbase-dirhandle - 5.22.1-2
> perlbase-dynaloader - 5.22.1-2
> perlbase-encode - 5.22.1-2
> perlbase-errno - 5.22.1-2
> perlbase-essential - 5.22.1-2
> perlbase-extutils - 5.22.1-2
> perlbase-fcntl - 5.22.1-2
> perlbase-feature - 5.22.1-2
> perlbase-file - 5.22.1-2
> perlbase-filehandle - 5.22.1-2
> perlbase-filter - 5.22.1-2
> perlbase-findbin - 5.22.1-2
> perlbase-getopt - 5.22.1-2
> perlbase-http-tiny - 5.22.1-2
> perlbase-i18n - 5.22.1-2
> perlbase-if - 5.22.1-2
> perlbase-integer - 5.22.1-2
> perlbase-io - 5.22.1-2
> perlbase-ipc - 5.22.1-2
> perlbase-json-pp - 5.22.1-2
> perlbase-list - 5.22.1-2
> perlbase-locale - 5.22.1-2
> perlbase-meta-notation - 5.22.1-2
> perlbase-mime - 5.22.1-2
> perlbase-mro - 5.22.1-2
> perlbase-net - 5.22.1-2
> perlbase-opcode - 5.22.1-2
> perlbase-ostype - 5.22.1-2
> perlbase-params - 5.22.1-2
> perlbase-perlio - 5.22.1-2
> perlbase-pod - 5.22.1-2
> perlbase-posix - 5.22.1-2
> perlbase-re - 5.22.1-2
> perlbase-safe - 5.22.1-2
> perlbase-scalar - 5.22.1-2
> perlbase-selectsaver - 5.22.1-2
> perlbase-selfloader - 5.22.1-2
> perlbase-socket - 5.22.1-2
> perlbase-storable - 5.22.1-2
> perlbase-symbol - 5.22.1-2
> perlbase-sys - 5.22.1-2
> perlbase-tap - 5.22.1-2
> perlbase-term - 5.22.1-2
> perlbase-test - 5.22.1-2
> perlbase-text - 5.22.1-2
> perlbase-tie - 5.22.1-2
> perlbase-time - 5.22.1-2
> perlbase-unicore - 5.22.1-2
> perlbase-universal - 5.22.1-2
> perlbase-utf8 - 5.22.1-2
> perlbase-xsloader - 5.22.1-2



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

Philipp Reichmuth
e-Mail: phreichmuth@gmx.ch

------------------------------------=

DBD::Pg 3.5.3: Compilation fails - help (1 message)

$
0
0
Hi

I am trying to get DAViCal running on my Qnap NAS with the current firmware QTS 4.2. As DAViCal is based on a PostgreSQL database I need the module DBD::Pg. Everything was running nicely on my old NAS with an older revision of the firmware.

I have Perl 5.22.1 installed, all other modules could be installed without any issue, just with installing the dependencies. But DBD::Pg fails. The error message does not tell me too much, therefore I need your help. I also tried with Perl 5.10, but I am getting the same error message.

Here the output on Perl 5.22.1:
[/] # perl -MCPAN -e 'install DBD::Pg'
Reading '/share/CACHEDEV1_DATA/.cpan/Metadata'
Database was generated on Fri, 15 Apr 2016 17:17:02 GMT
Running install for module 'DBD::Pg'
Checksum for /share/CACHEDEV1_DATA/.cpan/sources/authors/id/T/TU/TURNSTEP/DBD-Pg-3.5.3.tar.gz ok
Configuring T/TU/TURNSTEP/DBD-Pg-3.5.3.tar.gz with Makefile.PL
Configuring DBD::Pg 3.5.3
PostgreSQL version: 90404 (default port: 5432)
POSTGRES_HOME: (not set)
POSTGRES_INCLUDE: /share/CACHEDEV1_DATA/.qpkg/Entware-ng/include
POSTGRES_LIB: /share/CACHEDEV1_DATA/.qpkg/Entware-ng/lib
OS: linux
Checking if your kit is complete...
Looks good
Using DBI 1.634 (for perl 5.022001 on x86_64-linux-glibc) installed in /opt/lib/perl5/5.22/auto/DBI/
Generating a Unix-style Makefile
Writing Makefile for DBD::Pg
Writing MYMETA.yml and MYMETA.json
TURNSTEP/DBD-Pg-3.5.3.tar.gz
/share/CACHEDEV1_DATA/.qpkg/Entware-ng/bin/perl5.22.1 Makefile.PL -- OK
Running make for T/TU/TURNSTEP/DBD-Pg-3.5.3.tar.gz
cp Pg.pm blib/lib/DBD/Pg.pm
cp lib/Bundle/DBD/Pg.pm blib/lib/Bundle/DBD/Pg.pm
Running Mkbootstrap for DBD::Pg ()
chmod 644 "Pg.bs"
make: *** No rule to make target '/opt/lib/perl5/5.22/auto/DBI/Driver_xst.h', needed by 'Pg.xsi'. Stop.
TURNSTEP/DBD-Pg-3.5.3.tar.gz
/opt/bin/make -- NOT OK

Please help.

Regards
Philipp

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

Philipp Reichmuth
e-Mail: phreichmuth@gmx.ch

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




RE: Trying to install module DBD::Pg (3 messages)

$
0
0
Adding...

[entzn@ausress9844] app $ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.7 (Santiago)

[entzn@ausress9844] app $
[entzn@ausress9844] app $
[entzn@ausress9844] app $ perl -v
This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi-ld





Thanks,
keith.mcwhite@bayer.com

From: Keith McWhite
Sent: Thursday, May 26, 2016 3:44 PM
To: 'dbd-pg@perl.org'
Subject: Trying to install module DBD::Pg

Hello,
While running "cpan" ...trying to install module DBD::Pg - I get to this point --> Path to pg_config?
So, it's looking for a path to an executable...Can you tell me what this path should be?

I also downloaded and unzipped DBD-Pg-3.5.3.tar.gz - but, as noted, I perform the command --> perl Makefile.PL
and get the same response: Path to pg_config?






Keith McWhite
Innovation Center
3500 Paramount Parkway
Morrisville, NC 27560
919-461-6555
E-mail : keith.mcwhite@bayer.com<mailto:keith.mcwhite@bayer.com>
To request work: http://jira.be.bayercropscience<http://jira.be.bayercropscience/>


Developer needed (1 message)

$
0
0
A new issue just came in to RT (116172) that is a request for
a statement handle attribute that would indicate the async
status of the handle in question.

This is a fairly simple enhancement if anyone is lurking on the
list and would like to help but hasn't yet! Should be some minor
changes to dbdimp.c, as well as adding some new tests inside
t/03smethod.t, and documentation inside Pg.pm.

I'm always available to help on #postgresql on freenode
(G_SabinoMullane), on #dbi on irc.perl.org, or via email.

--
Greg Sabino Mullane greg@endpoint.com
End Point Corporation
PGP Key: 0x14964AC8

=?UTF-8?B?cGF0Y2ggc3VnZ2VzdA==?= (1 message)

$
0
0
In about a year ago I'm create bug on cpan rt (this was not clever idea, I've already understood it), so here it is:
https://rt.cpan.org/Public/Bug/Display.html?id=106858  

in brief:
2 new Pg-specific functions that allow you to know source (original table) of every column in query. This information already present in libpq so why do not use it.

To illustrate where it can be used I've created some ORM (early in develop): https://github.com/Warstone/SORM or even https://github.com/Warstone/SORM/blob/develop/test.pl  

So... What I need to do for push it forward?

Problems with cpan install Bundle::DBD::Pg under cygwin64 (1 message)

$
0
0
Loading internal null logger. Install Log::Log4perl for logging messages
CPAN: Storable loaded ok (v2.53_01)
Reading '/home/Gyula/.cpan/Metadata'
Database was generated on Mon, 05 Dec 2016 07:41:02 GMT
CPAN: Module::CoreList loaded ok (v5.20160429)
DBI is up to date (1.636).
Running install for module 'DBD::Pg'
CPAN: Digest::SHA loaded ok (v5.95)
CPAN: Compress::Zlib loaded ok (v2.068)
Checksum for /home/Gyula/.cpan/sources/authors/id/T/TU/TURNSTEP/DBD-Pg-3.5.3.tar.gz ok
CPAN: File::Temp loaded ok (v0.2304)
CPAN: YAML loaded ok (v1.18)
CPAN: CPAN::Meta::Requirements loaded ok (v2.140)
CPAN: Parse::CPAN::Meta loaded ok (v2.150010)
CPAN: CPAN::Meta loaded ok (v2.150010)
Configuring T/TU/TURNSTEP/DBD-Pg-3.5.3.tar.gz with Makefile.PL
Configuring DBD::Pg 3.5.3
PostgreSQL version: 90601 (default port: 5432)
POSTGRES_HOME: (not set)
POSTGRES_INCLUDE: /cygdrive/c/Progra~1/PostgreSQL/9.6/include
POSTGRES_LIB: /cygdrive/c/Progra~1/PostgreSQL/9.6/lib
OS: cygwin
Checking if your kit is complete...
Looks good
Using DBI 1.636 (for perl 5.022002 on cygwin-thread-multi) installed in /usr/lib/perl5/vendor_perl/5.22/x86_64-cygwin-threads/auto/DBI/
Generating a Unix-style Makefile
Writing Makefile for DBD::Pg
Writing MYMETA.yml and MYMETA.json
TURNSTEP/DBD-Pg-3.5.3.tar.gz
/usr/bin/perl Makefile.PL -- OK
Running make for T/TU/TURNSTEP/DBD-Pg-3.5.3.tar.gz
cp Pg.pm blib/lib/DBD/Pg.pm
cp lib/Bundle/DBD/Pg.pm blib/lib/Bundle/DBD/Pg.pm
Running Mkbootstrap for DBD::Pg ()
chmod 644 "Pg.bs"
"/usr/bin/perl.exe" -p -e "s/~DRIVER~/Pg/g; s/^do\(/dontdo\(/" /usr/lib/perl5/vendor_perl/5.22/x86_64-cygwin-threads/auto/DBI/Driver.xst > Pg.xsi
"/usr/bin/perl.exe" "/usr/lib/perl5/5.22/ExtUtils/xsubpp" -typemap "/usr/lib/perl5/5.22/ExtUtils/typemap" Pg.xs > Pg.xsc && mv Pg.xsc Pg.c
gcc -c -I/cygdrive/c/Progra~1/PostgreSQL/9.6/include -I/usr/lib/perl5/vendor_perl/5.22/x86_64-cygwin-threads/auto/DBI -DPERL_USE_SAFE_PUTENV -D_GNU_SOURCE -U__STRICT_ANSI__ -ggdb -O2 -pipe -Wimplicit-function-declaration -fdebug-prefix-map=/mnt/share/maint/perl.x86_64/build=/usr/src/debug/perl-5.22.2-1 -fdebug-prefix-map=/mnt/share/maint/perl.x86_64/src/perl-5.22.2=/usr/src/debug/perl-5.22.2-1 -fwrapv -fno-strict-aliasing -fstack-protector-strong -D_FORTIFY_SOURCE=2 -DPGLIBVERSION=90601 -DPGDEFPORT=5432 -DUSEIMPORTLIB -O3 -DVERSION=\"3.5.3\" -DXS_VERSION=\"3.5.3\" "-I/usr/lib/perl5/5.22/x86_64-cygwin-threads/CORE" Pg.c
gcc -c -I/cygdrive/c/Progra~1/PostgreSQL/9.6/include -I/usr/lib/perl5/vendor_perl/5.22/x86_64-cygwin-threads/auto/DBI -DPERL_USE_SAFE_PUTENV -D_GNU_SOURCE -U__STRICT_ANSI__ -ggdb -O2 -pipe -Wimplicit-function-declaration -fdebug-prefix-map=/mnt/share/maint/perl.x86_64/build=/usr/src/debug/perl-5.22.2-1 -fdebug-prefix-map=/mnt/share/maint/perl.x86_64/src/perl-5.22.2=/usr/src/debug/perl-5.22.2-1 -fwrapv -fno-strict-aliasing -fstack-protector-strong -D_FORTIFY_SOURCE=2 -DPGLIBVERSION=90601 -DPGDEFPORT=5432 -DUSEIMPORTLIB -O3 -DVERSION=\"3.5.3\" -DXS_VERSION=\"3.5.3\" "-I/usr/lib/perl5/5.22/x86_64-cygwin-threads/CORE" dbdimp.c
dbdimp.c: In function ‘pg_db_login6’:
dbdimp.c:242:31: warning: implicit declaration of function ‘getpid’ [-Wimplicit-function-declaration]
imp_dbh->pid_number = getpid();
^
gcc -c -I/cygdrive/c/Progra~1/PostgreSQL/9.6/include -I/usr/lib/perl5/vendor_perl/5.22/x86_64-cygwin-threads/auto/DBI -DPERL_USE_SAFE_PUTENV -D_GNU_SOURCE -U__STRICT_ANSI__ -ggdb -O2 -pipe -Wimplicit-function-declaration -fdebug-prefix-map=/mnt/share/maint/perl.x86_64/build=/usr/src/debug/perl-5.22.2-1 -fdebug-prefix-map=/mnt/share/maint/perl.x86_64/src/perl-5.22.2=/usr/src/debug/perl-5.22.2-1 -fwrapv -fno-strict-aliasing -fstack-protector-strong -D_FORTIFY_SOURCE=2 -DPGLIBVERSION=90601 -DPGDEFPORT=5432 -DUSEIMPORTLIB -O3 -DVERSION=\"3.5.3\" -DXS_VERSION=\"3.5.3\" "-I/usr/lib/perl5/5.22/x86_64-cygwin-threads/CORE" quote.c
gcc -c -I/cygdrive/c/Progra~1/PostgreSQL/9.6/include -I/usr/lib/perl5/vendor_perl/5.22/x86_64-cygwin-threads/auto/DBI -DPERL_USE_SAFE_PUTENV -D_GNU_SOURCE -U__STRICT_ANSI__ -ggdb -O2 -pipe -Wimplicit-function-declaration -fdebug-prefix-map=/mnt/share/maint/perl.x86_64/build=/usr/src/debug/perl-5.22.2-1 -fdebug-prefix-map=/mnt/share/maint/perl.x86_64/src/perl-5.22.2=/usr/src/debug/perl-5.22.2-1 -fwrapv -fno-strict-aliasing -fstack-protector-strong -D_FORTIFY_SOURCE=2 -DPGLIBVERSION=90601 -DPGDEFPORT=5432 -DUSEIMPORTLIB -O3 -DVERSION=\"3.5.3\" -DXS_VERSION=\"3.5.3\" "-I/usr/lib/perl5/5.22/x86_64-cygwin-threads/CORE" types.c
rm -f blib/arch/auto/DBD/Pg/Pg.dll
LD_RUN_PATH="/cygdrive/c/Progra~1/PostgreSQL/9.6/lib" g++ --shared -Wl,--enable-auto-import -Wl,--export-all-symbols -Wl,--enable-auto-image-base -fstack-protector-strong Pg.o dbdimp.o quote.o types.o -o blib/arch/auto/DBD/Pg/Pg.dll \
/usr/lib/perl5/5.22/x86_64-cygwin-threads/CORE/cygperl5_22.dll -L/cygdrive/c/Progra~1/PostgreSQL/9.6/lib -lpq -lm \

chmod 755 blib/arch/auto/DBD/Pg/Pg.dll
"/usr/bin/perl.exe" -MExtUtils::Command::MM -e 'cp_nonempty' -- Pg.bs blib/arch/auto/DBD/Pg/Pg.bs 644
Manifying 2 pod documents
TURNSTEP/DBD-Pg-3.5.3.tar.gz
make -- OK
Running make test
Running Mkbootstrap for DBD::Pg ()
chmod 644 "Pg.bs"
PGINITDB="" PERL_DL_NONLAZY=1 "/usr/bin/perl.exe" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00_signature.t .... skipped: Set the environment variable TEST_SIGNATURE to enable this test
Cygwin runtime failure: /usr/bin/perl.exe: Invalid relocation. Offset 0xfffffffb71cb4df2 at address 0x48e4a139a doesn't fit into 32 bits
t/00basic.t .........
Dubious, test returned 127 (wstat 32512, 0x7f00)
Failed 2/3 subtests
Cygwin runtime failure: /usr/bin/perl.exe: Invalid relocation. Offset 0xfffffffb71bb4df2 at address 0x48e4a139a doesn't fit into 32 bits
t/01connect.t .......
Dubious, test returned 127 (wstat 32512, 0x7f00)
No subtests run
Cygwin runtime failure: /usr/bin/perl.exe: Invalid relocation. Offset 0xfffffffb71bb4df2 at address 0x48e4a139a doesn't fit into 32 bits
t/01constants.t .....
Dubious, test returned 127 (wstat 32512, 0x7f00)
No subtests run
Cygwin runtime failure: /usr/bin/perl.exe: Invalid relocation. Offset 0xfffffffb71bb4df2 at address 0x48e4a139a doesn't fit into 32 bits
t/02attribs.t .......
Dubious, test returned 127 (wstat 32512, 0x7f00)
No subtests run
Cygwin runtime failure: /usr/bin/perl.exe: Invalid relocation. Offset 0xfffffffb71bb4df2 at address 0x48e4a139a doesn't fit into 32 bits
t/03dbmethod.t ......
Dubious, test returned 127 (wstat 32512, 0x7f00)
No subtests run
Cygwin runtime failure: /usr/bin/perl.exe: Invalid relocation. Offset 0xfffffffb71bb4df2 at address 0x48e4a139a doesn't fit into 32 bits
t/03smethod.t .......
Dubious, test returned 127 (wstat 32512, 0x7f00)
No subtests run
Cygwin runtime failure: /usr/bin/perl.exe: Invalid relocation. Offset 0xfffffffb71cb4df2 at address 0x48e4a139a doesn't fit into 32 bits
t/04misc.t ..........
Dubious, test returned 127 (wstat 32512, 0x7f00)
No subtests run
Cygwin runtime failure: /usr/bin/perl.exe: Invalid relocation. Offset 0xfffffffb71cb4df2 at address 0x48e4a139a doesn't fit into 32 bits
t/06bytea.t .........
Dubious, test returned 127 (wstat 32512, 0x7f00)
No subtests run
Cygwin runtime failure: /usr/bin/perl.exe: Invalid relocation. Offset 0xfffffffb71cb4df2 at address 0x48e4a139a doesn't fit into 32 bits
t/07copy.t ..........
Dubious, test returned 127 (wstat 32512, 0x7f00)
No subtests run
Cygwin runtime failure: /usr/bin/perl.exe: Invalid relocation. Offset 0xfffffffb71ce4df2 at address 0x48e4a139a doesn't fit into 32 bits
t/08async.t .........
Dubious, test returned 127 (wstat 32512, 0x7f00)
No subtests run
Cygwin runtime failure: /usr/bin/perl.exe: Invalid relocation. Offset 0xfffffffb71cb4df2 at address 0x48e4a139a doesn't fit into 32 bits
t/09arrays.t ........
Dubious, test returned 127 (wstat 32512, 0x7f00)
No subtests run
Cygwin runtime failure: /usr/bin/perl.exe: Invalid relocation. Offset 0xfffffffb71ce4df2 at address 0x48e4a139a doesn't fit into 32 bits
t/12placeholders.t ..
Dubious, test returned 127 (wstat 32512, 0x7f00)
No subtests run
Cygwin runtime failure: /usr/bin/perl.exe: Invalid relocation. Offset 0xfffffffb71bb4df2 at address 0x48e4a139a doesn't fit into 32 bits
t/20savepoints.t ....
Dubious, test returned 127 (wstat 32512, 0x7f00)
No subtests run
Cygwin runtime failure: /usr/bin/perl.exe: Invalid relocation. Offset 0xfffffffb71cb4df2 at address 0x48e4a139a doesn't fit into 32 bits
t/30unicode.t .......
Dubious, test returned 127 (wstat 32512, 0x7f00)
No subtests run
Cygwin runtime failure: /usr/bin/perl.exe: Invalid relocation. Offset 0xfffffffb71bb4df2 at address 0x48e4a139a doesn't fit into 32 bits
t/99cleanup.t .......
Dubious, test returned 127 (wstat 32512, 0x7f00)
Failed 1/1 subtests

Test Summary Report
-------------------
t/00basic.t (Wstat: 32512 Tests: 1 Failed: 0)
Non-zero exit status: 127
Parse errors: Bad plan. You planned 3 tests but ran 1.
t/01connect.t (Wstat: 32512 Tests: 0 Failed: 0)
Non-zero exit status: 127
Parse errors: No plan found in TAP output
t/01constants.t (Wstat: 32512 Tests: 0 Failed: 0)
Non-zero exit status: 127
Parse errors: No plan found in TAP output
t/02attribs.t (Wstat: 32512 Tests: 0 Failed: 0)
Non-zero exit status: 127
Parse errors: No plan found in TAP output
t/03dbmethod.t (Wstat: 32512 Tests: 0 Failed: 0)
Non-zero exit status: 127
Parse errors: No plan found in TAP output
t/03smethod.t (Wstat: 32512 Tests: 0 Failed: 0)
Non-zero exit status: 127
Parse errors: No plan found in TAP output
t/04misc.t (Wstat: 32512 Tests: 0 Failed: 0)
Non-zero exit status: 127
Parse errors: No plan found in TAP output
t/06bytea.t (Wstat: 32512 Tests: 0 Failed: 0)
Non-zero exit status: 127
Parse errors: No plan found in TAP output
t/07copy.t (Wstat: 32512 Tests: 0 Failed: 0)
Non-zero exit status: 127
Parse errors: No plan found in TAP output
t/08async.t (Wstat: 32512 Tests: 0 Failed: 0)
Non-zero exit status: 127
Parse errors: No plan found in TAP output
t/09arrays.t (Wstat: 32512 Tests: 0 Failed: 0)
Non-zero exit status: 127
Parse errors: No plan found in TAP output
t/12placeholders.t (Wstat: 32512 Tests: 0 Failed: 0)
Non-zero exit status: 127
Parse errors: No plan found in TAP output
t/20savepoints.t (Wstat: 32512 Tests: 0 Failed: 0)
Non-zero exit status: 127
Parse errors: No plan found in TAP output
t/30unicode.t (Wstat: 32512 Tests: 0 Failed: 0)
Non-zero exit status: 127
Parse errors: No plan found in TAP output
t/99cleanup.t (Wstat: 32512 Tests: 0 Failed: 0)
Non-zero exit status: 127
Parse errors: Bad plan. You planned 1 tests but ran 0.
Files=16, Tests=1, 2 wallclock secs ( 0.09 usr 0.06 sys + 0.04 cusr 0.17 csys = 0.36 CPU)
Result: FAIL
Failed 15/16 test programs. 0/1 subtests failed.
make: *** [Makefile:966: test_dynamic] Error 127
TURNSTEP/DBD-Pg-3.5.3.tar.gz
make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports TURNSTEP/DBD-Pg-3.5.3.tar.gz

Re: Installing Bundle::DBD::Pg on Windows 10 64 bits (2 messages)

$
0
0
Thanks a lot, I just figured it out.

Best Regards,
Sid

On Wed, Mar 22, 2017 at 2:32 PM, sid mason <sidzmason@gmail.com> wrote:

> Hi,
>
> I hope all is well. I am installing the Bundle::DBD::Pg module on my
> windows 10 machine, it is asking the Path to pg_config?, the Postgress is
> edb-as96-meta-9.6.2.7-4-windows-x64 and I could not find such a file or
> directory, please help.
>
> Best Regards,
> Sid
>
>

Issue with ora2pg for connecting the ora2pg to Postgresql (1 message)

$
0
0
ÿØÿàJFIF``ÿÛC


$ &%# #"(-90(*6+"#2D26;=@@@&0FKE>J9?@=ÿÛC=)#)==================================================ÿÀ%"ÿÄ
ÿĵ}!1AQa"q2‘¡#B±ÁRÑð$3br‚
%&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyzƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖרÙÚáâãäåæçèéêñòóôõö÷øùúÿÄ
ÿĵw!1AQaq"2B‘¡±Á #3RðbrÑ
$4á%ñ&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz‚ƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖרÙÚâãäåæçèéêòóôõö÷øùúÿÚ?õMfÒâæÍ£0‘[nEaI¤kG÷ÿÿ¯[¦¸,¤0Àäx±àVDž)½^‘Áÿ|Ÿñ¯6sÃʳ÷ü¶=<4q
–*Þf^¡»£Æ.žYã@@Ü&ÜÔfº¯kG\Òò(Y£c tÜ;¨ ×'¬x–òþÆKY’ã%T烟_j@ÕgÑ|ª_Zª4±Ý(Á#ƒ·Ö½*QRއml4ëa×<RÒVóÐôz+šð_‰¥ñ•Ã]¬I<2D`€TŽ:“Ü)Ê..ÌñkН
Žœ÷D7$Yë%Ä{ÔH_ ô?çÒ´[ÄÚzõIïþ5£{gÜGό9QÁèGãX¤Yž°Ÿûí¿Æ¼ºT*áæÔZ³wó:ãRd½¢w]Œÿx’Î÷I’ÖÚ)7ÈFY”9þ•káý”h2É2an'2 #ªàCSÙøM–ç÷–¡ñÎØË5Ñ(
¡TÀµzPo—R«â)Õé'«»¸Uè }´S<ÃÿÙ

DBD::Pg version 3.6.0 released (1 message)

$
0
0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160


Version 3.6.0 of DBD::Pg, the Perl DBI driver for PostgreSQL, is
now available. This release fixes some bugs, adds some new
functions, and makes some behavior changes with regards to
returned data types. Also note that the canonical git repo is now:
git://github.com/bucardo/dbdpg.git

Version 3.6.0 of DBD::Pg can be downloaded here:

http://search.cpan.org/dist/DBD-Pg/

Checksums:

f1c4819acb15c2e2e5650e3571f74ba9 DBD-Pg-3.6.0.tar.gz
3e02e946253fd62d48868a9bdd12a9c7a4d7208e DBD-Pg-3.6.0.tar.gz

Complete list of changes:

Version 3.6.0 Released April 17, 2017 (git tag 3.6.0)

- Make sure we do not inadvertently modify the string passed to prepare() when
doing the new backslash escape manipulation.
[Greg Sabino Mullane]
(CPAN ticket #114000)

- Fix bug where $DBD::Pg::DBDPG_DEFAULT not picked up as a magic
string first time it is used in a script.
[Greg Sabino Mullane]
(CPAN ticket #112309)

- Fix UTF8 flag handling in pg_(get|put)copydata
[Dagfinn Ilmari Mannsåker]

- Fix UTF8 double-encoding with pg_enable_utf8 = 0
[Serge Pushkin]
(CPAN ticket #103137)

- Fix bug in quote_name which would fail to quote in some circumstances
(Github Issue #22)

- Allow clean parsing of new Postgres X.Y version format
[Erik Rijkers er at xs4all.nl]

- Add pg_canonical_ids() and pg_canonical_names(), which returns information
about each column in the result set.
[Warstone warstone at list.ru]
(CPAN ticket #106858)

- Map SQL_NUMERIC to PG_NUMERIC (instead of PG_FLOAT8)
[Alice Maz alice at alizemaz.com]
(CPAN ticket #120358)

- Force real, float, and double precision into SvNVs
[Greg Sabino Mullane]
(CPAN ticket #113683 and other places)

- Support for number of rows greater than an "int". Requires support for same
from a future version of libpq before it will work completely.
[Greg Sabino Mullane]
(CPAN ticket #102444)

- Fix skipped test counts in Win32 builds
[Andy Grundman]

- Allow tests to work against Postgres 8.4 by tweaking client_encoding calls.
[Pavel Raiskup praiskup at redhat.com]
(CPAN ticket #116179)

- Silence warnings in t/02attribs.t and t/04misc.t
[Dagfinn Ilmari Mannsåker]

- Support binary COPY format
[Dagfinn Ilmari Mannsåker]

- Ensure tests do not use $ENV{PGSERVICE} or $ENV{PGDATABASE}
[Erik Rijkers]

- Switched canonical repo to git://github.com/bucardo/dbdpg.git

- --
Greg Sabino Mullane greg@turnstep.com
PGP Key: 0x14964AC8 201704251244
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8
-----BEGIN PGP SIGNATURE-----

iEYEAREDAAYFAlj/fVUACgkQvJuQZxSWSsiCiQCfeq/X1zzYKX85LXulAawhYs0w
w3cAoLwcp0cUvB32xeUZ4GQDH0vwZg5D
=5C26
-----END PGP SIGNATURE-----

How do I install DBD::Pg without Postgres? (2 messages)

$
0
0
I have PostgreSQL installed and running on several servers. I now need
to install DBD::Pg on some workstations, but do not want Postgres
available on them. Is there any way to build the DBD::Pg module on one
of the servers then copy it into the workstations?

I am running Slackware 14.2, with PostgreSQL 9.6 and Perl 5.22.

Thank you,

Bob McConnell
N2SPP

Re: DBI-1.623, DBD::Pg-2.19.3, bind_param () (1 message)

$
0
0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160


"H.Merijn Brand" wrote:
> When I use bind_param on a char (4) field in DBD::Pg,
> it only loads the first character:

Finally got some spare cycles to dig into this. It was indeed a bug
in DBD::Pg. I just pushed the change at:

80cf6d864f908c4e99ecf3ef1e8a687dec89059

Thank you for finding this and creating a good test case. What happened is
that the type mapping file, types.c was mapping a SQL_CHAR back to an
internal Postgres type of 'char', when it should have gone back to 'bpchar'.
Both map back to SQL_CHAR, but the script was not checking the "this one is
canonical" flag when creating the reverse mapping, and thus the
SQL_CHAR -> bpchar mapping was getting clobbered by the SQL_CHAR -> char
mapping. All seems to work as expected now, and there is a new test in
t/04-misc.t as well.

- --
Greg Sabino Mullane greg@turnstep.com
End Point Corporation http://www.endpoint.com/
PGP Key: 0x14964AC8 201309010026
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8
-----BEGIN PGP SIGNATURE-----

iEYEAREDAAYFAlIiwgEACgkQvJuQZxSWSsi6sACfWtpD+NasvRmKhX37HrZYWI/W
zVUAoMsd9POaTXCzmxuNDugt3TyaDk37
=UJoW
-----END PGP SIGNATURE-----


Test Failure: DB handle attribute "PrintWarn" shows warnings when on (2 messages)

$
0
0
Known issue?

Running make test
PGINITDB="/usr/local/pgsql/bin/initdb" PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00_signature.t .... skipped: Set the environment variable TEST_SIGNATURE to enable this test
t/00basic.t ......... ok
t/01connect.t ....... 3/15 #
# DBI Version 1.628
# DBD::Pg Version 2.19.3
# Perl Version 5.18.1
# OS darwin
# PostgreSQL (compiled) 90300
# PostgreSQL (target) 90300
# PostgreSQL (reported) PostgreSQL 9.3beta1 on x86_64-apple-darwin12.3.0, compiled by i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00), 64-bit
# Default port 5432
# DBI_DSN dbi:Pg:
# DBI_USER postgres
# Test schema dbd_pg_testschema
# LANG en_US.UTF-8
# array_nulls on
# backslash_quote safe_encoding
# client_encoding UTF8
# server_encoding UTF8
# standard_conforming_strings on
# Adjusted: DBI_DSN
t/01connect.t ....... ok
t/01constants.t ..... ok
t/02attribs.t ....... 1/249
# Failed test 'DB handle attribute "PrintWarn" shows warnings when on'
# at t/02attribs.t line 263.
# ''
# doesn't match '(?^:dbd_pg_test_temp)'
t/02attribs.t ....... 247/249 # Looks like you failed 1 test of 249.
t/02attribs.t ....... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/249 subtests
(less 1 skipped subtest: 247 okay)
t/03dbmethod.t ...... ok
t/03smethod.t ....... ok
t/04misc.t .......... 48/70 # Checking pg_st_split_statement. This may take a while...
t/04misc.t .......... ok
t/06bytea.t ......... ok
t/07copy.t .......... ok
t/08async.t ......... ok
t/09arrays.t ........ ok
t/12placeholders.t .. ok
t/20savepoints.t .... ok
t/99cleanup.t ....... 1/1 Removing test database directory
t/99cleanup.t ....... ok

Test Summary Report
-------------------
t/02attribs.t (Wstat: 256 Tests: 249 Failed: 1)
Failed test: 23
Non-zero exit status: 1

Thanks,

David

Major change approaching - what to add? (12 messages)

$
0
0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160


So I am planning on the next release having the big UTF-8 change. This
will be a major version bump and as such I'd like to consolidate
as many breaking changes as possible into it. So, if anybody has things
that might go into such a release, either feature requests, or arguments
to bump the prerequisites for Perl and DBI up, let me know soon.

- --
Greg Sabino Mullane greg@turnstep.com
End Point Corporation http://www.endpoint.com/
PGP Key: 0x14964AC8 201309301021
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8
-----BEGIN PGP SIGNATURE-----

iEYEAREDAAYFAlJJiQ8ACgkQvJuQZxSWSsj/xACgzbxtdIVhhMCK1/cOz7IwmOyv
ydwAmwfkYzscZ43dqRnB7dvCGui72WcA
=3rRO
-----END PGP SIGNATURE-----


[rt.cpan.org #54113] Add support for lo_truncate() function (1 message)

$
0
0
<URL: https://rt.cpan.org/Ticket/Display.html?id=54113 >

(re lo_truncate support)

> This is surprisingly tricky to get working. All the pieces are in
> place, but I cannot get to work without returning -1 (an error). Maybe
> I'll commit what I have.

This is in place if someone wants to take a crack at fixing it.

Viewing all 134 articles
Browse latest View live


Latest Images