Re: [GENERAL] Critical Bug

2011-04-06 Thread Allan Kamau
On Thu, Apr 7, 2011 at 5:50 AM, Craig Ringer wrote: > On 06/04/11 18:51, tejas tank wrote: > >> What should I have to do.? > > Read this: >  http://wiki.postgresql.org/wiki/Guide_to_reporting_problems > > and try again with a question that includes an example you can > distribute to show other

[GENERAL] Re: how to insert multiple rows and get the ids back in a temp table (pgplsql)?

2011-04-06 Thread abhishek.itbhu2004
I am still new to postgres. Can you please tell the exact syntax for this. I tried different things but was not able to retun the ids of the newly inserted rows. -- View this message in context: http://postgresql.1045698.n5.nabble.com/how-to-insert-multiple-rows-and-get-the-ids-back-in-a-temp-tab

Re: [GENERAL] Attaching/detaching tablespaces (or, in general, parts of a DB)

2011-04-06 Thread John R Pierce
On 04/06/11 7:05 PM, Yang Zhang wrote: Is it possible to attach or detach parts of a DB (e.g. tablespaces), such that I can flexibly move the disks containing the DB tables around to different hosts? The last discussion I could find on this topic is from 2007, and the answer was "No": http://po

Re: [GENERAL] Critical Bug

2011-04-06 Thread Craig Ringer
On 06/04/11 18:51, tejas tank wrote: > What should I have to do.? Read this: http://wiki.postgresql.org/wiki/Guide_to_reporting_problems and try again with a question that includes an example you can distribute to show others the problem, including any required data, as a single .sql file.

[GENERAL] Re: Why security-definer functions are executable by public by default?

2011-04-06 Thread Noah Misch
On Tue, Apr 05, 2011 at 08:41:21AM +0200, hubert depesz lubaczewski wrote: > was pointed to the fact that security definer functions have the same > default privileges as normal functions in the same language - i.e. if > the language is trusted - public has the right to execute them. That default

[GENERAL] Attaching/detaching tablespaces (or, in general, parts of a DB)

2011-04-06 Thread Yang Zhang
Is it possible to attach or detach parts of a DB (e.g. tablespaces), such that I can flexibly move the disks containing the DB tables around to different hosts? The last discussion I could find on this topic is from 2007, and the answer was "No": http://postgresql.1045698.n5.nabble.com/Possible-t

Re: [GENERAL] postgres segfaulting on pg_restore

2011-04-06 Thread Craig Ringer
On 7/04/2011 4:02 AM, Chris Curvey wrote: Hmmm. I'm on Ubuntu, and running 9.0.3, so I'm getting my packages from Martin Pitt, per the instructions at http://www.dctrwatson.com/2010/09/installing-postgresql-9-0-on-ubuntu-10-04/. I don't seem to see any debug packages there. Nor I. https://l

Re: [GENERAL] Preventing accidental non-SSL connections in psql?

2011-04-06 Thread Yang Zhang
On Wed, Apr 6, 2011 at 6:18 PM, Adrian Klaver wrote: > On Wednesday, April 06, 2011 5:21:23 pm Yang Zhang wrote: > >> On Wed, Apr 6, 2011 at 4:57 PM, Scott Marlowe >> wrote: > >> > On Wed, Apr 6, 2011 at 5:24 PM, Yang Zhang >> > wrote: > >> >> On Wed, Apr 6, 2011 at 4:22 PM, Adrian Klaver >> >>

Re: [GENERAL] Preventing accidental non-SSL connections in psql?

2011-04-06 Thread Adrian Klaver
On Wednesday, April 06, 2011 5:21:23 pm Yang Zhang wrote: > On Wed, Apr 6, 2011 at 4:57 PM, Scott Marlowe wrote: > > On Wed, Apr 6, 2011 at 5:24 PM, Yang Zhang wrote: > >> On Wed, Apr 6, 2011 at 4:22 PM, Adrian Klaver wrote: > >>> On Wednesday, April 06, 2011 4:06:40 pm Yang Zhang wrote: >

Re: [GENERAL] Preventing accidental non-SSL connections in psql?

2011-04-06 Thread Yang Zhang
On Wed, Apr 6, 2011 at 4:57 PM, Scott Marlowe wrote: > On Wed, Apr 6, 2011 at 5:24 PM, Yang Zhang wrote: >> On Wed, Apr 6, 2011 at 4:22 PM, Adrian Klaver >> wrote: >>> On Wednesday, April 06, 2011 4:06:40 pm Yang Zhang wrote: How do I prevent accidental non-SSL connections (at least to spe

Re: [GENERAL] Preventing accidental non-SSL connections in psql?

2011-04-06 Thread Yang Zhang
On Wed, Apr 6, 2011 at 4:53 PM, Adrian Klaver wrote: > On Wednesday, April 06, 2011 4:24:30 pm Yang Zhang wrote: > >> On Wed, Apr 6, 2011 at 4:22 PM, Adrian Klaver >> wrote: > >> > On Wednesday, April 06, 2011 4:06:40 pm Yang Zhang wrote: > >> >> How do I prevent accidental non-SSL connections (a

Re: [GENERAL] Preventing accidental non-SSL connections in psql?

2011-04-06 Thread Scott Marlowe
On Wed, Apr 6, 2011 at 5:24 PM, Yang Zhang wrote: > On Wed, Apr 6, 2011 at 4:22 PM, Adrian Klaver wrote: >> On Wednesday, April 06, 2011 4:06:40 pm Yang Zhang wrote: >>> How do I prevent accidental non-SSL connections (at least to specific >>> hosts) when connecting via psql? Is there any configu

Re: [GENERAL] Preventing accidental non-SSL connections in psql?

2011-04-06 Thread Adrian Klaver
On Wednesday, April 06, 2011 4:24:30 pm Yang Zhang wrote: > On Wed, Apr 6, 2011 at 4:22 PM, Adrian Klaver wrote: > > On Wednesday, April 06, 2011 4:06:40 pm Yang Zhang wrote: > >> How do I prevent accidental non-SSL connections (at least to specific > >> hosts) when connecting via psql? Is there a

Re: [GENERAL] Preventing accidental non-SSL connections in psql?

2011-04-06 Thread Yang Zhang
On Wed, Apr 6, 2011 at 4:22 PM, Adrian Klaver wrote: > On Wednesday, April 06, 2011 4:06:40 pm Yang Zhang wrote: >> How do I prevent accidental non-SSL connections (at least to specific >> hosts) when connecting via psql? Is there any configuration for this? >> Thanks. > > http://www.postgresql.or

Re: [GENERAL] Preventing accidental non-SSL connections in psql?

2011-04-06 Thread Adrian Klaver
On Wednesday, April 06, 2011 4:06:40 pm Yang Zhang wrote: > How do I prevent accidental non-SSL connections (at least to specific > hosts) when connecting via psql? Is there any configuration for this? > Thanks. http://www.postgresql.org/docs/9.0/interactive/auth-pg-hba-conf.html hostssl http://ww

[GENERAL] Preventing accidental non-SSL connections in psql?

2011-04-06 Thread Yang Zhang
How do I prevent accidental non-SSL connections (at least to specific hosts) when connecting via psql? Is there any configuration for this? Thanks. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-

Re: [GENERAL] adding years to a date field

2011-04-06 Thread John R Pierce
On 04/06/11 1:18 PM, Steve Crawford wrote: select ii_purchased + your_interval_field * interval '1 year' as date from inventory_item; Correct. I meant ...::interval... FWIW, '1 year'::interval implies a cast, that is a postgresql-specific notation for cast('1 year' as interval), while in

Re: [GENERAL] How to set password without echoing characters?

2011-04-06 Thread Yang Zhang
On Wed, Apr 6, 2011 at 2:09 PM, Adrian Klaver wrote: > On Wednesday, April 06, 2011 2:00:53 pm Yang Zhang wrote: >> Anyone know how to set your password without having it visible in the >> terminal, psql history, etc. (i.e. getpass(3))? Hoping there's a >> program that already does this. Thanks. >

Re: [GENERAL] How to set password without echoing characters?

2011-04-06 Thread Yang Zhang
On Wed, Apr 6, 2011 at 2:15 PM, Yang Zhang wrote: > On Wed, Apr 6, 2011 at 2:09 PM, Adrian Klaver wrote: >> On Wednesday, April 06, 2011 2:00:53 pm Yang Zhang wrote: >>> Anyone know how to set your password without having it visible in the >>> terminal, psql history, etc. (i.e. getpass(3))? Hopin

Re: [GENERAL] How to set password without echoing characters?

2011-04-06 Thread Adrian Klaver
On Wednesday, April 06, 2011 2:00:53 pm Yang Zhang wrote: > Anyone know how to set your password without having it visible in the > terminal, psql history, etc. (i.e. getpass(3))? Hoping there's a > program that already does this. Thanks. http://www.postgresql.org/docs/9.0/interactive/libpq-pgpass

[GENERAL] How to set password without echoing characters?

2011-04-06 Thread Yang Zhang
Anyone know how to set your password without having it visible in the terminal, psql history, etc. (i.e. getpass(3))? Hoping there's a program that already does this. Thanks. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.pos

Re: [GENERAL] Postgres-9.x - ADODB - PHP

2011-04-06 Thread Rich Shepard
On Wed, 6 Apr 2011, Rich Shepard wrote: Have you a URL for subscribing? Found one. Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

[GENERAL] Fwd: dblink server closed the connection unexpectedly - Exception

2011-04-06 Thread Emi Lu
Hello, I got the following exception from dblink query: == sql>... server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. The connection to the server wa

Re: [GENERAL] Postgres-9.x - ADODB - PHP

2011-04-06 Thread Rich Shepard
On Wed, 6 Apr 2011, Joshua D. Drake wrote: This seems more like a question for the adodb list. OK, Josh. Have you a URL for subscribing? Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pg

[GENERAL] dblink server closed the connection unexpectedly - Exception

2011-04-06 Thread Emi Lu
Hello, I got the following exception from dblink query: == sql>... server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. The connection to the server wa

Re: [GENERAL] adding years to a date field

2011-04-06 Thread Steve Crawford
On 04/06/2011 12:28 PM, John R Pierce wrote: On 04/06/11 9:10 AM, Steve Crawford wrote: select ii_purchased + your_interval_field * '1 year'::date as date from inventory_item; that SHOULD be written as... select ii_purchased + your_interval_field * interval '1 year' as date from inventory_it

Re: [RMX:#] Re: [GENERAL] Strange loss of data during INSERT

2011-04-06 Thread Radosław Smogura
Hmm... Please attach your log with parameters passed to server, you said only about statement not about passwords. As well You provieded small number of information about your EE app (but it's starnge it works on Oracle). Is it EJB 3 or 2 app, and do you use EJB Entities or JPA ones? My suggest

Re: [GENERAL] Postgres-9.x - ADODB - PHP

2011-04-06 Thread Joshua D. Drake
On Wed, 2011-04-06 at 12:34 -0700, Rich Shepard wrote: > My one PHP application stopped working since I upgraded postgres to > -9.0.3. It uses the adodb interface. I can addess the postgres back end > using psql. > >How do I determine if I need to update the adodb-php capabilities? And, > what

Re: [GENERAL] postgres segfaulting on pg_restore

2011-04-06 Thread Chris Curvey
On Mon, Apr 4, 2011 at 11:59 PM, Craig Ringer wrote: > On 05/04/11 11:18, Chris Curvey wrote: > > > This is on Ubuntu 10.10 server, 64-bit on Intel. I'm running Postgres > > 9.0.3, 64-bit from the ppa repository. > > > > What can I do to help the developers find the root cause of this? I'm > > h

Re: [GENERAL] Integrating New Data Type

2011-04-06 Thread Radosław Smogura
Pavel Stehule Tuesday 05 April 2011 10:11:02 > Hello > > 2011/4/5 Nick Raj : > > Hi all, > > I have defined a new data type. I have defined in and out function for > > that data type. > > But i want to know how to integrate this data type with postgres (how > > postgres compile my code or know my

[GENERAL] Postgres-9.x - ADODB - PHP

2011-04-06 Thread Rich Shepard
My one PHP application stopped working since I upgraded postgres to -9.0.3. It uses the adodb interface. I can addess the postgres back end using psql. How do I determine if I need to update the adodb-php capabilities? And, what options should I have selected when building this version so the

Re: [GENERAL] adding years to a date field

2011-04-06 Thread John R Pierce
On 04/06/11 9:10 AM, Steve Crawford wrote: select ii_purchased + your_interval_field * '1 year'::date as date from inventory_item; that SHOULD be written as... select ii_purchased + your_interval_field * interval '1 year' as date from inventory_item; -- Sent via pgsql-general mailing list

Re: [GENERAL] adding years to a date field

2011-04-06 Thread Karsten Hilbert
On Wed, Apr 06, 2011 at 09:18:15AM -0700, Christine Penner wrote: > This still gave me a sytax error. The other suggestion to multiply > the interval field by 1 year also gave me a syntax error. ... > Any other suggestions? ... > Christine Penner > Ingenious Software Live up to to it ? Karst

Re: [GENERAL] temp tables not dropping at end of script

2011-04-06 Thread Scott Ribe
On Apr 6, 2011, at 9:47 AM, Davenport, Julie wrote: > We’ve never explicitly closed the connection, it just seemed to close > automatically when the coldfusion script ended. My guess is you've also upgraded coldfusion, or changed its config, and now it's caching connections. -- Scott Ribe sco

Re: [GENERAL] adding years to a date field

2011-04-06 Thread Christine Penner
This worked. Thanks Christine Penner Ingenious Software 250-352-9495 ch...@fp2.ca On 06/04/2011 9:23 AM, Osvaldo Kussama wrote: SELECT ii_purchased + ii_expected_life * '1 year'::interval FROM inventory_item;

Re: [GENERAL] adding years to a date field

2011-04-06 Thread Michael Glaesemann
On Apr 6, 2011, at 12:18, Christine Penner wrote: > This still gave me a sytax error. The other suggestion to multiply the > interval field by 1 year also gave me a syntax error. What was the error? And it's preferable to do multiply rather than do the equivalent of an eval on some string. s

Re: [GENERAL] temp tables not dropping at end of script

2011-04-06 Thread Davenport, Julie
>>On Wed, Apr 06, 2011 at 09:12:55AM -0500, Davenport, Julie wrote: >> postgres 8.4 database). When we get the error, if we try to drop >> the table at the command line, it says the table does not exist, yet >> we cannot rerun the script unless we stop and restart the database. >What if you stop

Re: [GENERAL] adding years to a date field

2011-04-06 Thread Christine Penner
This still gave me a sytax error. The other suggestion to multiply the interval field by 1 year also gave me a syntax error. ii_purchased is a timestamp without time zone ii_expected_life is a smallint Any other suggestions? Christine Penner Ingenious Software 250-352-9495 ch...@fp2.ca On 06

Re: [GENERAL] adding years to a date field

2011-04-06 Thread Steve Crawford
On 04/06/2011 08:54 AM, Christine Penner wrote: I have to add a number of years to a date field. The years come from another field in the table. I know I can do this: select (ii_purchased + interval '3 year') as date from inventory_item; But I need to replace the 3 in 3 years with another fie

Re: [GENERAL] adding years to a date field

2011-04-06 Thread Adrian Klaver
On 04/06/2011 08:54 AM, Christine Penner wrote: I have to add a number of years to a date field. The years come from another field in the table. I know I can do this: select (ii_purchased + interval '3 year') as date from inventory_item; But I need to replace the 3 in 3 years with another field

Re: [GENERAL] temp tables not dropping at end of script

2011-04-06 Thread Andrew Sullivan
On Wed, Apr 06, 2011 at 10:47:55AM -0500, Davenport, Julie wrote: > We've never explicitly closed the connection, it just seemed to close > automatically when the coldfusion script ended. Not sure how I would even do > that from a script since this is run automatically, not from the command > l

[GENERAL] adding years to a date field

2011-04-06 Thread Christine Penner
I have to add a number of years to a date field. The years come from another field in the table. I know I can do this: select (ii_purchased + interval '3 year') as date from inventory_item; But I need to replace the 3 in 3 years with another field from the same table ii_expected_life but I ca

Re: [GENERAL] Auto Adjust Age

2011-04-06 Thread Carlos Mennens
On Wed, Apr 6, 2011 at 11:24 AM, JC de Villa wrote: > Theres also the age() function > > SELECT age(dob); > > Should give you > >           age > - >  31 years 5 mons 17 days > > If you want to be really exact about it. :) That worked awesome too! ide=# SELECT age(dob

Re: [GENERAL] Why security-definer functions are executable by public by default?

2011-04-06 Thread Adrian Klaver
On 04/06/2011 07:41 AM, hubert depesz lubaczewski wrote: On Wed, Apr 06, 2011 at 09:06:50AM +0200, pasman pasmański wrote: was pointed to the fact that security definer functions have the same default privileges as normal functions in the same language - i.e. if the language is trusted - public

Re: [GENERAL] Auto Adjust Age

2011-04-06 Thread Carlos Mennens
On Wed, Apr 6, 2011 at 11:20 AM, Andrew Sullivan wrote: > Why do you have the age stored at all?  When you SELECT from the table > and want someone's age, just do > >    SELECT [. . .], extract('years' from age(CURRENT_TIMESTAMP,dob)) as age >           . . . FROM users . . . > > By and large, it'

Re: [GENERAL] Auto Adjust Age

2011-04-06 Thread Karsten Hilbert
On Wed, Apr 06, 2011 at 11:15:31AM -0400, Jerry Sievers wrote: > I'd suggest not storing age but instead wrapping with a view that calls > date_trunc('year', now() - dob). Or put that in the query: SELECT ..., date_trunc('year', now() - dob) as age FROM users ; Karsten -

Re: [GENERAL] Auto Adjust Age

2011-04-06 Thread JC de Villa
On Wed, Apr 6, 2011 at 11:15 PM, Jerry Sievers wrote: > Carlos Mennens writes: > >> CREATE TABLE users >> ( >>    id integer PRIMARY KEY UNIQUE NOT NULL, --ID >>    fname character varying(40) NOT NULL, --First name >>    lname character varying(40) NOT NULL, --Last name >>    email character var

Re: [GENERAL] Auto Adjust Age

2011-04-06 Thread Andrew Sullivan
On Wed, Apr 06, 2011 at 10:53:49AM -0400, Carlos Mennens wrote: > online that shows me how to do so. I've created a table called 'users' > and I have it configured as follows: > > CREATE TABLE users > ( >id integer PRIMARY KEY UNIQUE NOT NULL, --ID >fname character varying(40) NOT NULL, --

Re: [GENERAL] Auto Adjust Age

2011-04-06 Thread Rob Sargent
On 04/06/2011 08:53 AM, Carlos Mennens wrote: I've only been using PostgreSQL since Oct 2010 and it's my first experience with SQL or any ORDBMS. I've searched on the web and been creating my own database users, databases, tables from scratch which has been interesting to say the least but now

Re: [GENERAL] temp tables not dropping at end of script

2011-04-06 Thread Relyea, Mike
Since we upgraded from postgres 8.0 to 8.4, every script where we have queries that use temp tables now has to have an explicit drop of the temp table at the end of the script, or it will blow up the next time it runs, saying it cannot create the temp table because it already exists (these are c

Re: [GENERAL] Auto Adjust Age

2011-04-06 Thread Rob Sargent
On 04/06/2011 08:53 AM, Carlos Mennens wrote: I've only been using PostgreSQL since Oct 2010 and it's my first experience with SQL or any ORDBMS. I've searched on the web and been creating my own database users, databases, tables from scratch which has been interesting to say the least but now

Re: [GENERAL] Functions as first-class values

2011-04-06 Thread Merlin Moncure
On Wed, Apr 6, 2011 at 9:10 AM, Pavel Stehule wrote: > Hello > > 2011/4/6 Jon Smark : >> Hi, >> >> Is there support in PL/pgSQL for treating functions as first-class values? >> Consider the pseudo-code simple example below, which illustrates how this >> feature can be useful.  I reckon that this b

Re: [GENERAL] Auto Adjust Age

2011-04-06 Thread Jerry Sievers
Carlos Mennens writes: > CREATE TABLE users > ( >id integer PRIMARY KEY UNIQUE NOT NULL, --ID >fname character varying(40) NOT NULL, --First name >lname character varying(40) NOT NULL, --Last name >email character varying NOT NULL, --email address >office integer NOT NULL, --O

Re: [GENERAL] forums.postgresql.com.au

2011-04-06 Thread Michael Glaesemann
On Apr 6, 2011, at 8:49, Thom Brown wrote: > On 6 April 2011 13:15, Andrew Sullivan wrote: >> Why do these two completely different styles of >> interaction need to be merged anyway? I think adding forum traffic to >> the mailing list will be yet another way to make the lists less >> useful.) >

Re: [GENERAL] temp tables not dropping at end of script

2011-04-06 Thread Andrew Sullivan
On Wed, Apr 06, 2011 at 09:12:55AM -0500, Davenport, Julie wrote: > postgres 8.4 database). When we get the error, if we try to drop > the table at the command line, it says the table does not exist, yet > we cannot rerun the script unless we stop and restart the database. What if you stop your

[GENERAL] Auto Adjust Age

2011-04-06 Thread Carlos Mennens
I've only been using PostgreSQL since Oct 2010 and it's my first experience with SQL or any ORDBMS. I've searched on the web and been creating my own database users, databases, tables from scratch which has been interesting to say the least but now I would like to know if this is possible in SQL or

Re: [GENERAL] temp tables not dropping at end of script

2011-04-06 Thread Rob Sargent
On 04/06/2011 08:12 AM, Davenport, Julie wrote: Since we upgraded from postgres 8.0 to 8.4, every script where we have queries that use temp tables now has to have an explicit drop of the temp table at the end of the script, or it will blow up the next time it runs, saying it cannot create the t

Re: [GENERAL] Why security-definer functions are executable by public by default?

2011-04-06 Thread hubert depesz lubaczewski
On Wed, Apr 06, 2011 at 09:06:50AM +0200, pasman pasmański wrote: > > was pointed to the fact that security definer functions have the same > > default privileges as normal functions in the same language - i.e. if > > the language is trusted - public has the right to execute them. > > > > maybe i'm

[GENERAL] temp tables not dropping at end of script

2011-04-06 Thread Davenport, Julie
Since we upgraded from postgres 8.0 to 8.4, every script where we have queries that use temp tables now has to have an explicit drop of the temp table at the end of the script, or it will blow up the next time it runs, saying it cannot create the temp table because it already exists (these are c

Re: [GENERAL] Functions as first-class values

2011-04-06 Thread Pavel Stehule
Hello 2011/4/6 Jon Smark : > Hi, > > Is there support in PL/pgSQL for treating functions as first-class values? > Consider the pseudo-code simple example below, which illustrates how this > feature can be useful.  I reckon that this behaviour can be emulated using > EXECUTE, but I suspect there ar

Re: [GENERAL] forums.postgresql.com.au

2011-04-06 Thread Andrew Sullivan
On Wed, Apr 06, 2011 at 01:49:24PM +0100, Thom Brown wrote: > It introduces another point of entry to the community. There will be > people who are averse to mailing lists, and find forums more familiar > and accessible. Adding more traffic means more users involved in the > community. Not sure

[GENERAL] Functions as first-class values

2011-04-06 Thread Jon Smark
Hi, Is there support in PL/pgSQL for treating functions as first-class values? Consider the pseudo-code simple example below, which illustrates how this feature can be useful. I reckon that this behaviour can be emulated using EXECUTE, but I suspect there are serious performance penalties. Your t

Re: [GENERAL] Critical Bug

2011-04-06 Thread tv
> Hello, > > > I have hug postgresql database and when i going to search for a query > with database retrieve with limit of 669 is allow > > If my query fetch records more over 669 records then error is comming... > > > RROR: more than one row returned by a subquery used as an expression > > *

Re: [GENERAL] Critical Bug

2011-04-06 Thread Adrian Klaver
On Wednesday, April 06, 2011 3:51:49 am tejas tank wrote: > Hello, > > > I have hug postgresql database and when i going to search for a query > with database retrieve with limit of 669 is allow > > If my query fetch records more over 669 records then error is comming... > > > RROR: more than

Re: [GENERAL] Critical Bug

2011-04-06 Thread Vibhor Kumar
On Apr 6, 2011, at 4:21 PM, tejas tank wrote: > ERROR: more than one row returned by a subquery used as an expression > ** Error ** > ERROR: more than one row returned by a subquery used as an expression > SQL state: 21000 Error Message is showing that you are using subquery with

Re: [GENERAL] Critical Bug

2011-04-06 Thread Thom Brown
On 6 April 2011 11:51, tejas tank wrote: > Hello, > > > I have hug postgresql database and when i going to search for a query > with database retrieve with limit of 669 is allow > > If my query fetch records more over 669 records then error is comming... > > > RROR: more than one row returned by

[GENERAL] Critical Bug

2011-04-06 Thread tejas tank
Hello, I have hug postgresql database and when i going to search for a query with database retrieve with limit of 669 is allow If my query fetch records more over 669 records then error is comming... RROR: more than one row returned by a subquery used as an expression ** Error **

[GENERAL] ridiculously large crosstabs

2011-04-06 Thread Joseph Doench
I need to generate a very large crosstab. about 50 rows x 50 columns -- for a request for a recurring report. Example: Column Headings = Job_IDand Row Headings = Employee_ID and Values in the table = Hours_worked Got the idea? I've looked at : http://www.postgresonline.com/journal/archi

Re: [GENERAL] forums.postgresql.com.au

2011-04-06 Thread Thom Brown
On 6 April 2011 13:15, Andrew Sullivan wrote: > On Wed, Apr 06, 2011 at 10:08:15PM +1000, Elliot Chance wrote: >> Hi Everyone, >> >> It has been a long time since this was brought up. It's time. >> >> Any important concerns should be discussed at (to keep everyone looking at >> the same place): >

Re: [GENERAL] forums.postgresql.com.au

2011-04-06 Thread Andrew Sullivan
On Wed, Apr 06, 2011 at 10:08:15PM +1000, Elliot Chance wrote: > Hi Everyone, > > It has been a long time since this was brought up. It's time. > > Any important concerns should be discussed at (to keep everyone looking at > the same place): > http://wiki.postgresql.org/wiki/Forums_at_postgresql

[GENERAL] forums.postgresql.com.au

2011-04-06 Thread Elliot Chance
Hi Everyone, It has been a long time since this was brought up. It's time. Any important concerns should be discussed at (to keep everyone looking at the same place): http://wiki.postgresql.org/wiki/Forums_at_postgresql.com.au But also keep general discussion on the mailing list. - The sc

[GENERAL] forums.postgresql.com.au

2011-04-06 Thread Elliot Chance
Hi Everyone, It has been a long time since this was brought up. It's time. Any important concerns should be discussed at (to keep everyone looking at the same place): http://wiki.postgresql.org/wiki/Forums_at_postgresql.com.au But also keep general discussion on the mailing list. - The sc

Re: [GENERAL] Why security-definer functions are executable by public by default?

2011-04-06 Thread Simon Riggs
On Tue, Apr 5, 2011 at 3:45 PM, Tom Lane wrote: > hubert depesz lubaczewski writes: >> was pointed to the fact that security definer functions have the same >> default privileges as normal functions in the same language - i.e. if >> the language is trusted - public has the right to execute them.

Re: [GENERAL] Is index rebuilt upon updating table with the same values as already existing in the table?

2011-04-06 Thread Zeev Ben-Sender
Thanks for the reply. I tested the issue and found out that the row has moved to another page, which means that the index was rebuilt. Now the question is about the cost of such rebuild: is it the same as update with different value or update with the same value costs less. _

Re: [GENERAL] Dumping functions with pg_dump

2011-04-06 Thread Vibhor Kumar
On Apr 6, 2011, at 4:45 AM, Greg Corradini wrote: > Hello, > Is it possible yet in 8.4 to pg_dump specific functions without having to do > the whole pg_restore thing? > > If it is possible, what is the syntax to dump a specific function? > > If not possible, then how does one use pg_restore t

Re: [GENERAL] pg_dump generating unrestorable data (8.4)

2011-04-06 Thread Eric McKeeth
On Sun, Apr 3, 2011 at 12:49 PM, Glenn Maynard wrote: > After dumping a database (pg_dump -F c database > dump), trying to restore > it (pg_restore dump) gives: > > > pg_restore: [archiver (db)] Error from TOC entry 2463; 0 58451 TABLE DATA > table user > > pg_restore: [archiver (db)] COPY failed

Re: [GENERAL] Is there any provision to take incremental backup

2011-04-06 Thread John R Pierce
On 04/06/11 1:09 AM, dba wrote: Is there any provision to take incremental backup for a table in postgresql. no, but WAL log archiving is effectively an incremental backup of the whole database cluster. It allows you to implement Point In Time Recovery (PITR). See http://www.postgresq

Re: [GENERAL] Problem with multiple action rule on modifiable view

2011-04-06 Thread InterRob
Just a few days ago, I ran into the same thing. As I understand it: the idea behind the whole RULE system is that rules become added / replaced in the query tree BEFORE it is submitted to the optimizer. So, there is no quarantee queryies will be executed in the exact form and order as you wrote th

[GENERAL] Is there any provision to take incremental backup

2011-04-06 Thread dba
Is there any provision to take incremental backup for a table in postgresql. -- View this message in context: http://postgresql.1045698.n5.nabble.com/Is-there-any-provision-to-take-incremental-backup-tp4285873p4285873.html Sent from the PostgreSQL - general mailing list archive at Nabble.com

Re: [GENERAL] Why security-definer functions are executable by public by default?

2011-04-06 Thread pasman pasmański
> was pointed to the fact that security definer functions have the same > default privileges as normal functions in the same language - i.e. if > the language is trusted - public has the right to execute them. > > maybe i'm missing something important, but given the fact that security > definer fun