Re: [GENERAL] Help with details of what happens when I create a constraint NOT VALID

2014-01-24 Thread Marti Raudsepp
On Thu, Jan 23, 2014 at 3:46 PM, Bill Moran wrote: > It was suggested that > leaving the constraints as NOT VALID might affect the planner, causing > it to use less optimal plans because it doesn't think it can trust > the constraint. Is this true? AFAICT the planner doesn't currently rely on FO

[GENERAL] postgres-fdw questions

2014-01-24 Thread Emmanuel Medernach
Hello, I'm currently testing postgres_fdw feature on PostgreSQL 9.3.2 and I have some questions: - What are the limits to the number of foreign tables ? - What is the current status about foreign joins push-down ? Thanks in advance, -- <> -- Sent via pgsql-general mailing list (pgsql-gener

[GENERAL] pg_dump: dumpBlobs(): could not open large object: ERROR: large object 27729547 does not exist

2014-01-24 Thread Manoj Agarwal
Hi, I have a Postgresql-7.4.19 database in SQL_ASCII Encoding format. There is a table, besides other tables, in the database, that is used to store BLOBs through a Web-based application. I normally take database backup using pg_dump, as and when needed, and it has always worked fine. It wa

Re: [GENERAL] postgres-fdw questions

2014-01-24 Thread Ian Lawrence Barwick
2014/1/24 Emmanuel Medernach : > Hello, > > I'm currently testing postgres_fdw feature on PostgreSQL 9.3.2 and I have > some questions: > > - What are the limits to the number of foreign tables ? As far as I know, there is no limit (beyond the usual PostgreSQL limits). > - What is the current s

Re: [GENERAL] postgres-fdw questions

2014-01-24 Thread Thom Brown
On 24 January 2014 09:20, Emmanuel Medernach wrote: > Hello, > > I'm currently testing postgres_fdw feature on PostgreSQL 9.3.2 and I have > some questions: > > - What are the limits to the number of foreign tables ? As far as I'm aware, there isn't one. > - What is the current status about fo

Re: [GENERAL] postgres-fdw questions

2014-01-24 Thread Jim Mlodgenski
On Fri, Jan 24, 2014 at 4:20 AM, Emmanuel Medernach < meder...@clermont.in2p3.fr> wrote: > Hello, > > I'm currently testing postgres_fdw feature on PostgreSQL 9.3.2 and I have > some questions: > > - What are the limits to the number of foreign tables ? > - What is the current status about forei

Re: [GENERAL] problem connecting to postgres via apache

2014-01-24 Thread Susan Cassidy
$dbh = DBI->connect("dbi:Pg:dbname=$dbname;host=${dbserver};port=$dbport;", $dbuser, $dbpasswd) or errexit( "Unable to connect to dbname $dbname, err: $DBI::errstr"); The exact same connection string works fine in a standalone perl program. Susan On Thu, Jan 23, 2014 at 3:08 PM, Adrian Klaver

Re: [GENERAL] problem connecting to postgres via apache

2014-01-24 Thread Tom Lane
Susan Cassidy writes: > $dbh = DBI->connect("dbi:Pg:dbname=$dbname;host=${dbserver};port=$dbport;", > $dbuser, $dbpasswd) or > errexit( "Unable to connect to dbname $dbname, err: $DBI::errstr"); > The exact same connection string works fine in a standalone perl program. Given the permissions er

Re: [GENERAL] problem connecting to postgres via apache

2014-01-24 Thread Adrian Klaver
On 01/24/2014 09:35 AM, Susan Cassidy wrote: I've already checked that. It is enabled. I am running Scientific Linux. SELinux is enabled? The database connection value is enabled to allow or disallow webserver connections? On Fri, Jan 24, 2014 at 8:28 AM, Tom Lane mailto:t...@sss.pgh.pa

Re: [GENERAL] problem connecting to postgres via apache

2014-01-24 Thread Susan Cassidy
I've already checked that. It is enabled. I am running Scientific Linux. On Fri, Jan 24, 2014 at 8:28 AM, Tom Lane wrote: > Susan Cassidy writes: > > $dbh = > DBI->connect("dbi:Pg:dbname=$dbname;host=${dbserver};port=$dbport;", > > $dbuser, $dbpasswd) or > > errexit( "Unable to connect to d

Re: [GENERAL] problem connecting to postgres via apache

2014-01-24 Thread Bret Stern
Are you calling the perl from apache (assuming yes)..? Does the web user have the rights to execute the perl code? Try disabling SELinux.. You'll get it.. On Fri, 2014-01-24 at 09:35 -0800, Susan Cassidy wrote: > I've already checked that. It is enabled. I am running Scientific > Linux. > > >

Re: [GENERAL] problem connecting to postgres via apache

2014-01-24 Thread Susan Cassidy
[scassidy@jacensolo ~]$ /usr/sbin/sestatus | grep SELinux SELinux status: enabled SELinuxfs mount:/selinux I have yet to find what to do to enable webserver connections. Susan On Fri, Jan 24, 2014 at 9:38 AM, Adrian Klaver wrote: > On 01/24/2014 09:35 AM, Susan

Re: [GENERAL] problem connecting to postgres via apache

2014-01-24 Thread Susan Cassidy
I don't actually know what SELinux is. What else will happen if I (find out how to) disable it? Susan On Fri, Jan 24, 2014 at 9:47 AM, Bret Stern < bret_st...@machinemanagement.com> wrote: > Are you calling the perl from apache (assuming yes)..? Does the web > user have the rights to execute t

Re: [GENERAL] problem connecting to postgres via apache

2014-01-24 Thread Daniel Verite
Susan Cassidy wrote: > [scassidy@jacensolo ~]$ /usr/sbin/sestatus | grep SELinux > SELinux status: enabled > SELinuxfs mount:/selinux > > I have yet to find what to do to enable webserver connections. setsebool -P httpd_can_network_connect_db 1 Best rega

Re: [GENERAL] problem connecting to postgres via apache

2014-01-24 Thread Susan Cassidy
I tried: setsebool -P httpd_can_network_connect 1 But I get: Cannot set persistent booleans without managed policy. Could not change policy booleans I don't know what that means. Susan On Fri, Jan 24, 2014 at 9:38 AM, Adrian Klaver wrote: > On 01/24/2014 09:35 AM, Susan Cassidy wrote: > >>

Re: [GENERAL] problem connecting to postgres via apache

2014-01-24 Thread Daniel Verite
Susan Cassidy wrote: > Cannot set persistent booleans without managed policy. > Could not change policy booleans > > I don't know what that means. It probably means you're not root when issuing that command. Become root or use sudo. Best regards, -- Daniel PostgreSQL-powered mail user

Re: [GENERAL] problem connecting to postgres via apache

2014-01-24 Thread John R Pierce
On 1/24/2014 11:55 AM, Susan Cassidy wrote: I don't actually know what SELinux is. What else will happen if I (find out how to) disable it? your system will be less secure. -- john r pierce 37N 122W somewhere on the middle of the left coast -- Sent vi

Re: [GENERAL] pg_dump: dumpBlobs(): could not open large object: ERROR: large object 27729547 does not exist

2014-01-24 Thread Kevin Grittner
Manoj Agarwal wrote: > I have a Postgresql-7.4.19 database Did you mean 8.4.19 or are you really running on a release which has been out of support since 2010? -- Kevin Grittner EDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-general mailing list (pgsql-g

Re: [GENERAL] problem connecting to postgres via apache

2014-01-24 Thread Bret Stern
SELINUX is a bunch of settings to control security. If you are able to find it, I was suggesting you disable it only to see if the Apache problem goes away. Then to turn it back on. If it stops working, then there is a setting which is preventing Apache from being accessed. Locating the specific

Re: [GENERAL] problem connecting to postgres via apache

2014-01-24 Thread John R Pierce
On 1/24/2014 12:19 PM, Bret Stern wrote: SELINUX is a bunch of settings to control security. If you are able to find it, I was suggesting you disable it only to see if the Apache problem goes away. do NOT disable it. set the selinux policy to 'permissive'.this causes it to log exceptions

[GENERAL] levenshtein_less_equal does not work

2014-01-24 Thread alexandros_e
Hello to all, I always use PostgreSQL from enterpriseDB. I have both 9.2 and 9.1 latest verions installed on two different Ubuntu 64bit machines. For some reason levenshtein_less_equal does not work, in contrast to levenshtein which works as expected. I even downloaded the src code for PostgreSQL

Re: [GENERAL] levenshtein_less_equal does not work

2014-01-24 Thread Joe Conway
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/24/2014 12:50 PM, alexandros_e wrote: > For some reason levenshtein_less_equal does not work, Define "does not work", i.e. cut and paste exact SQL and output so we can see and reproduce your issue. Joe - -- Joe Conway credativ LLC: http://www

Re: [GENERAL] levenshtein_less_equal does not work

2014-01-24 Thread alexandros_e
Query: SELECT levenshtein_less_equal('extensive', 'exhaustive',2); ERROR: function levenshtein_less_equal(unknown, unknown, integer) does not exist LINE 1: SELECT levenshtein_less_equal('extensive', 'exhaustive',2); ^ HINT: No function matches the given name and argument types. Y

Re: [GENERAL] levenshtein_less_equal does not work

2014-01-24 Thread Joe Conway
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/24/2014 01:07 PM, alexandros_e wrote: > SELECT levenshtein_less_equal('extensive', 'exhaustive',2); Did you CREATE the extension? 8<- psql (9.3.2) Type "help" for help. iftest=# SELECT levenshtein_less_equal('exte

Re: [GENERAL] levenshtein_less_equal does not work

2014-01-24 Thread Adrian Klaver
On 01/24/2014 01:07 PM, alexandros_e wrote: Query: SELECT levenshtein_less_equal('extensive', 'exhaustive',2); ERROR: function levenshtein_less_equal(unknown, unknown, integer) does not exist LINE 1: SELECT levenshtein_less_equal('extensive', 'exhaustive',2); ^ HINT: No functi

Re: [GENERAL] levenshtein_less_equal does not work

2014-01-24 Thread alexandros_e
Just this: create extension fuzzystrmatch; If the extension was not installed, then the simple levenstein distance would not work either. -- View this message in context: http://postgresql.1045698.n5.nabble.com/levenshtein-less-equal-does-not-work-tp5788710p5788715.html Sent from the Postgre

Re: [GENERAL] levenshtein_less_equal does not work

2014-01-24 Thread Adrian Klaver
On 01/24/2014 01:19 PM, alexandros_e wrote: Just this: create extension fuzzystrmatch; If the extension was not installed, then the simple levenstein distance would not work either. Which is what makes me think you are not connecting to the server you think you are. -- View this messag

Re: [GENERAL] levenshtein_less_equal does not work

2014-01-24 Thread alexandros_e
SELECT version(); and \df levenshtein_less_equal "PostgreSQL 9.1.11 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-52), 64-bit" routing_nw2=# \df levenshtein_less_equal List of functions Schema | Name | Result data type | Argument

Re: [GENERAL] levenshtein_less_equal does not work

2014-01-24 Thread Joe Conway
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/24/2014 01:28 PM, alexandros_e wrote: > SELECT version(); > > and > > \df levenshtein_less_equal > > "PostgreSQL 9.1.11 on x86_64-unknown-linux-gnu, compiled by gcc > (GCC) 4.1.2 20080704 (Red Hat 4.1.2-52), 64-bit" > > routing_nw2=# \df le

Re: [GENERAL] levenshtein_less_equal does not work

2014-01-24 Thread alexandros_e
=# \dx List of installed extensions Name | Version | Schema | Description -+-++-- plpgsql | 1.0 | pg_catalog | PL/pgSQL procedural language (1 row) -# \df levenshtein*

Re: [GENERAL] levenshtein_less_equal does not work

2014-01-24 Thread Joe Conway
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/24/2014 01:38 PM, alexandros_e wrote: > =# \dx List of installed extensions Name | Version | Schema | > Description > -+-++-- > plpgsql | 1.0 | pg_catalog | PL/pgSQL procedural l

Re: [GENERAL] levenshtein_less_equal does not work

2014-01-24 Thread Adrian Klaver
On 01/24/2014 01:38 PM, alexandros_e wrote: =# \dx List of installed extensions Name | Version | Schema | Description -+-++-- plpgsql | 1.0 | pg_catalog | PL/pgSQL procedural language (1 row) -# \df

Re: [GENERAL] levenshtein_less_equal does not work

2014-01-24 Thread alexandros_e
With your help I found the solution. My DB was initially based on a 9.0 server and I had restored it on the 9.1 server. For some reason 9.0 fuzzystrmatch functions (levenstein...) were already present in this DB. So, CREATE EXTENSION fuzzystrmatch did not work. I had to manually remove function 9.0

Re: [GENERAL] levenshtein_less_equal does not work

2014-01-24 Thread Joe Conway
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/24/2014 02:07 PM, alexandros_e wrote: > With your help I found the solution. My DB was initially based on a > 9.0 server and I had restored it on the 9.1 server. For some reason > 9.0 fuzzystrmatch functions (levenstein...) were already present i

Re: [GENERAL] levenshtein_less_equal does not work

2014-01-24 Thread Adrian Klaver
On 01/24/2014 02:07 PM, alexandros_e wrote: With your help I found the solution. My DB was initially based on a 9.0 server and I had restored it on the 9.1 server. For some reason 9.0 fuzzystrmatch functions (levenstein...) were already present in this DB. So, CREATE EXTENSION fuzzystrmatch did n

[GENERAL] Exact Patch Version

2014-01-24 Thread Abdul Sayeed
Hi All, Could any one please confirm me in which community version "Fix multiple bugs in index page locking during hot-standby WAL replay" has been fixed. Your response in appreciated. Warm Regards, Abdul Sayeed DBA - EnterpriseDB Skype: abdul.sayeed24

Re: [GENERAL] Exact Patch Version

2014-01-24 Thread Bruce Momjian
On Sat, Jan 25, 2014 at 05:02:23AM +0530, Abdul Sayeed wrote: > Hi All, > > Could any one please confirm me in which community version "Fix multiple bugs > in index page locking during hot-standby WAL replay" has been fixed. Well, that patch shows as being applied to 9.3.X on: commit ebd