4 #if (!defined($ARGV[0])) {
5 # print "Usage: $0 name_of_filelist_file\n";
11 my $conn = Pg::connectdb("dbname=indy3 user=postgres
13 ( PGRES_CONNECTION_OK eq $conn->status )
14 and print "Pg::connectdb ........... ok\n"
15 or die "Pg::connectdb ........... not ok: ", $conn->errorMessage;
18 #open(DUMP,"$dump") || die "can't open dump file $dump";
22 Pg::doQuery($conn, "select content_data from content", \@ary);
24 for $i ( 0 .. $#ary ) {
25 for $j ( 0 .. $#{$ary[$i]} ) {
26 print "$ary[$i][$j]\t";
33 # next if (/^$/ || /^\s*$/);
35 # # exception liste einlesen...
40 # $conn->exec("BEGIN");
41 # $oid= $conn->lo_import("$filename");
42 # print $conn->errorMessage."\n";
43 # print "trying to insert icon\n";
44 # $ioid= $conn->lo_import("/tmp/iconblob.jpg");
45 # print $conn->errorMessage."\n";
46 # $sql="INSERT INTO images
47 #(title,date,place,author,to_img_layout,to_img_type,is_classified,to_media_f
48 #older,to_img_color,comment,webdb_create,img_width,img_height,image_data,ico
50 # "VALUES ('".$titel."','20010108','".$ort.
52 #dem','".$layout."','1','0','2','2','".$comment."',now(),'".$img_width."','"
54 # "','".$oid."','".$ioid."')";
56 # $conn->exec( $sql );
57 # print $conn->errorMessage."\n";