Re: [GENERAL] Feature request - psql --quote-variable

2017-03-09 Thread Caleb Cushing
Thank you. Apparently I never saw this response, for some reason... So reading that leaves me confused on one point, which is the right way to do it if you're inserting an integer? would this be right? is there a difference between the single and double quotes here? (presume id is a bigint) `ins

Re: [GENERAL] Feature request - psql --quote-variable

2017-03-07 Thread David G. Johnston
On Tue, Mar 7, 2017 at 1:29 PM, Pavel Stehule wrote: > > > 2017-03-07 21:04 GMT+01:00 Caleb Cushing : > >> Thank you. Apparently I never saw this response, for some reason... >> >> So reading that leaves me confused on one point, which is the right way >> to do it if you're inserting an integer?

Re: [GENERAL] Feature request - psql --quote-variable

2017-03-07 Thread Pavel Stehule
2017-03-07 21:04 GMT+01:00 Caleb Cushing : > Thank you. Apparently I never saw this response, for some reason... > > So reading that leaves me confused on one point, which is the right way to > do it if you're inserting an integer? would this be right? is there a > difference between the single a

Re: [GENERAL] Feature request - psql --quote-variable

2017-02-21 Thread Pavel Stehule
Hi 2017-02-21 15:19 GMT+01:00 Caleb Cushing : > recently while exploring this problem http://stackoverflow.com/q/ > 40945277/206466. I decided to go with the docker container approach of a > shell script. > > I realized that postgres' variables aren't quoted either, which results > in me quoting

[GENERAL] Feature request - psql --quote-variable

2017-02-21 Thread Caleb Cushing
recently while exploring this problem http://stackoverflow.com/q/40945277/206466. I decided to go with the docker container approach of a shell script. I realized that postgres' variables aren't quoted either, which results in me quoting them with bash, to help avoid accidents, and even then I'm

Re: [GENERAL] Feature request: separate logging

2016-11-20 Thread Michael Paquier
On Sun, Nov 20, 2016 at 12:56 PM, Guillaume Lelarge wrote: > Le 18 nov. 2016 2:03 PM, "otheus uibk" a écrit : >> Finally, if these changes can be implemented, is it impossible to backport >> them to prior versions, say 9.1 and up? If I wrote a patch, under what >> conditions would the patch be ac

Re: [GENERAL] Feature request: separate logging

2016-11-19 Thread Guillaume Lelarge
Le 18 nov. 2016 2:03 PM, "otheus uibk" a écrit : > > A glaring weakness in Postgresql for production systems is that the administrator has no way of controlling what types of logs go where. There are at least two types of logs: errors and statement logs. (I could also add: connection, syntax error

[GENERAL] Feature request: separate logging

2016-11-18 Thread otheus uibk
A glaring weakness in Postgresql for production systems is that the administrator has no way of controlling what types of logs go where. There are at least two types of logs: errors and statement logs. (I could also add: connection, syntax error, query duration, audit). It has becomes increasingly

Re: [GENERAL] Feature Request: Faceting for full text search

2015-12-14 Thread John R Pierce
On 12/9/2015 9:30 AM, Mirek Svoboda wrote: Is it OK if I add feature request "faceting for FTS" to roadmap? I hope you can define precisely what you mean by this in concrete terms, as I look at it and scratch my head. -- john r pierce, recycling bits in santa cruz -- Sent via pgsql-g

Re: [GENERAL] Feature Request: Faceting for full text search

2015-12-14 Thread Jim Nasby
On 12/9/15 11:30 AM, Mirek Svoboda wrote: Is it OK if I add feature request "faceting for FTS" to roadmap? If you're asking how to get a feature added to Postgres, you basically have 4 options: 1) Convince an existing contributor to work on adding the feature. 2) Convince a large enough gro

[GENERAL] Feature Request: Faceting for full text search

2015-12-09 Thread Mirek Svoboda
Hello, Is it OK if I add feature request "faceting for FTS" to roadmap? Regards, Mirek Svoboda | +420 608 224 486 | Skype: xsvobo10

Re: [GENERAL] Feature request: fsync and commit_delay options per database

2015-06-30 Thread Bráulio Bhavamitra
On Tue, Jun 30, 2015 at 3:43 AM, Jeff Janes wrote: > 2015-06-29 15:18 GMT-07:00 Bráulio Bhavamitra : >> >> Hello all, >> >> After reading >> http://stackoverflow.com/questions/9407442/optimise-postgresql-for-fast-testing >> I've tried to use commit_delay to make commits really slow on a test >> en

Re: [GENERAL] Feature request: fsync and commit_delay options per database

2015-06-29 Thread Jeff Janes
2015-06-29 15:18 GMT-07:00 Bráulio Bhavamitra : > Hello all, > > After reading > http://stackoverflow.com/questions/9407442/optimise-postgresql-for-fast-testing > I've tried to use commit_delay to make commits really slow on a test > environment. Unfortunetely, the maximum value is 100ms (100_000

Re: [GENERAL] Feature request: fsync and commit_delay options per database

2015-06-29 Thread Bráulio Bhavamitra
On Mon, Jun 29, 2015 at 7:43 PM, Tom Lane wrote: > =?UTF-8?Q?Br=C3=A1ulio_Bhavamitra?= writes: >> Besides increasing it, it would be great to have these two options >> (fsync and commit_delay) per database, that is, valid only for >> databases configured with them. That would greatly speed up tes

Re: [GENERAL] Feature request: fsync and commit_delay options per database

2015-06-29 Thread Tom Lane
=?UTF-8?Q?Br=C3=A1ulio_Bhavamitra?= writes: > Besides increasing it, it would be great to have these two options > (fsync and commit_delay) per database, that is, valid only for > databases configured with them. That would greatly speed up test > running and still make the cluster available for ot

[GENERAL] Feature request: fsync and commit_delay options per database

2015-06-29 Thread Bráulio Bhavamitra
Hello all, After reading http://stackoverflow.com/questions/9407442/optimise-postgresql-for-fast-testing I've tried to use commit_delay to make commits really slow on a test environment. Unfortunetely, the maximum value is 100ms (100_000 microseconds). Besides increasing it, it would be great to

[GENERAL] Feature Request: bigtsvector

2015-06-16 Thread CPT
Hi all; We are running a multi-TB bioinformatics system on PostgreSQL and use a denormalized schema in places with a lot of tsvectors aggregated together for centralized searching. This is very important to the performance of the system. These aggregate many documents (sometimes tens of thou

[GENERAL] Feature Request: json_extend, jsonb_extend

2014-12-17 Thread Kiswono Prayogo
It would be nice if PostgreSQL has *_extend (similar to $.extend from jQuery or _.extend from UnderscoreJs) for JSON/JSONB columns, so we could write it like this: UPDATE tablename SET jsoncolumn = json_extend(jsoncolumn, $2) WHERE id = $1; instead of this: UPDATE tablename SET data = (

Re: [GENERAL] Feature request: temporary schemas

2014-09-22 Thread Pete Hollobon
On 14 September 2014 22:01, cowwoc wrote: > Hi, > > I'd like to propose the ability to create temporary schemas. > > Unlike temporary tables, this feature would enable developers to create a > temporary schema once and execute CREATE TABLE statements without the > TEMPORARY parameter. > I think

Re: [GENERAL] Feature request: temporary schemas

2014-09-17 Thread cowwoc
Hi guys, I wanted to update you on this topic. Pete provided an excellent answer at http://dba.stackexchange.com/a/76661/4719 that almost worked (we couldn't find a solution for functions) but it turns out that my original problem definition was incorrect. I assumed that my unit tests only use on

Re: [GENERAL] Feature request: temporary schemas

2014-09-16 Thread Pete Hollobon
On 14 September 2014 22:01, cowwoc wrote: > Hi, > > I'd like to propose the ability to create temporary schemas. > > Unlike temporary tables, this feature would enable developers to create a > temporary schema once and execute CREATE TABLE statements without the > TEMPORARY parameter. > > > I thi

Re: [GENERAL] Feature request: temporary schemas

2014-09-15 Thread Adrian Klaver
On 09/15/2014 08:05 AM, cowwoc wrote: On 15/09/2014 10:37 AM, Adrian Klaver wrote: From your second post: " 1. I'm already planning to run unit tests against a separate (but identical) database than production, so there's no danger of wiping out the production database. 2. I need to cr

Re: [GENERAL] Feature request: temporary schemas

2014-09-15 Thread cowwoc
On 15/09/2014 10:37 AM, Adrian Klaver wrote: From your second post: " 1. I'm already planning to run unit tests against a separate (but identical) database than production, so there's no danger of wiping out the production database. 2. I need to create a new temporary schema per test, a

Re: [GENERAL] Feature request: temporary schemas

2014-09-15 Thread Adrian Klaver
On 09/15/2014 07:08 AM, cowwoc wrote: On 15/09/2014 9:39 AM, Adrian Klaver wrote: Not exactly. Each test is responsible for populating its own schema (creating tables, inserting data). The main purpose of using temporary schemas is to ensure that each test runs in isolation so that data from ot

Re: [GENERAL] Feature request: temporary schemas

2014-09-15 Thread Rob Sargent
Interesting enough concept. Please don't forget to test against a realistic data set as well. It does seem to me that the devs can easily make, fill, clean up their own db. And a central builder (eg Jenkins?) can do the same with, importantly using ALL tests. Then again using real data. > On

Re: [GENERAL] Feature request: temporary schemas

2014-09-15 Thread cowwoc
On 15/09/2014 9:39 AM, Adrian Klaver wrote: Not exactly. Each test is responsible for populating its own schema (creating tables, inserting data). The main purpose of using temporary schemas is to ensure that each test runs in isolation so that data from other tests cannot influence the outcome

Re: [GENERAL] Feature request: temporary schemas

2014-09-15 Thread Adrian Klaver
On 09/14/2014 08:21 PM, cowwoc wrote: Hi Adrian, Replies below. On 14/09/2014 8:34 PM, Adrian Klaver wrote: On 09/14/2014 02:01 PM, cowwoc wrote: See http://dba.stackexchange.com/q/76494/4719 for a related discussion. So from the above link and the discussion here so far I gather you want:

Re: [GENERAL] Feature request: temporary schemas

2014-09-14 Thread cowwoc
Hi Adrian, Replies below. On 14/09/2014 8:34 PM, Adrian Klaver wrote: On 09/14/2014 02:01 PM, cowwoc wrote: See http://dba.stackexchange.com/q/76494/4719 for a related discussion. So from the above link and the discussion here so far I gather you want: 1) A CREATE TEMPORARY SCHEMA that behav

Re: [GENERAL] Feature request: temporary schemas

2014-09-14 Thread Adrian Klaver
On 09/14/2014 02:01 PM, cowwoc wrote: Hi, I'd like to propose the ability to create temporary schemas. Unlike temporary tables, this feature would enable developers to create a temporary schema once and execute CREATE TABLE statements without the TEMPORARY parameter. This would facilitate runn

Re: [GENERAL] Feature request: temporary schemas

2014-09-14 Thread Nick Guenther
On September 14, 2014 6:01:15 PM EDT, cowwoc wrote: > >On 14/09/2014 5:52 PM, Nick Guenther [via PostgreSQL] wrote: >> >> >> On September 14, 2014 5:01:54 PM EDT, cowwoc <[hidden email] >> > wrote: >> >Hi, >> > >> >I'd like to propose the ability to create temporary schemas. >> > >> >This would

Re: [GENERAL] Feature request: temporary schemas

2014-09-14 Thread cowwoc
Hi Nick, I don't think this would help for three reasons: 1. I'm already planning to run unit tests against a separate (but identical) database than production, so there's no danger of wiping out the production database. 2. I need to create a new temporary schema per test, and run 4-10

Re: [GENERAL] Feature request: temporary schemas

2014-09-14 Thread Nick Guenther
On September 14, 2014 5:01:54 PM EDT, cowwoc wrote: >Hi, > >I'd like to propose the ability to create temporary schemas. > >This would facilitate running unit tests, where developers would like >to run >the same creation script for unit tests and production code but do not What if you ran a tem

[GENERAL] Feature request: temporary schemas

2014-09-14 Thread cowwoc
Hi, I'd like to propose the ability to create temporary schemas. Unlike temporary tables, this feature would enable developers to create a temporary schema once and execute CREATE TABLE statements without the TEMPORARY parameter. This would facilitate running unit tests, where developers would l

Re: [GENERAL] Feature request: support queries with returning on simple views with automatic update

2013-10-10 Thread Michael Paquier
> it would be great if i could simply write 'insert into simple_view returning > col1' or 'insert into simple_view returning col2' and postgres would make the > magic behind. You can do it with 9.3~ servers already. Here is an example: =# create table aa (a int); CREATE TABLE =# insert into aa va

[GENERAL] Feature request: support queries with returning on simple views with automatic update

2013-10-10 Thread Attila Soki
hi all, the automatic update for views is really a helpful feature, but i think it would be more useful with returning support. currently we have to construct a rule/trigger to support queries like 'insert into simple_view returning pk' is it possible (or desired) to implement something like an

[GENERAL] Feature request: pg_restore with tablespace rules

2013-05-13 Thread Tim Kane
Hi all... Forgive me if this is not the correct forum for such suggestions. I'm about to begin using the custom format options for pg_restore, so that we can leverage the performance gains from --jobs options. However I would like to be able to specify the tablespace for individual tables/indexes

Re: [GENERAL] Feature Request - Postgres FDW

2012-08-07 Thread David Greco
Great thanks. I see there is talk of 9.3 including autonomous transaction support as well. -Original Message- From: Kevin Grittner [mailto:kevin.gritt...@wicourts.gov] Sent: Tuesday, August 07, 2012 1:04 PM To: David Greco; pgsql-general@postgresql.org Subject: Re: [GENERAL] Feature

Re: [GENERAL] Feature Request - Postgres FDW

2012-08-07 Thread Andreas Kretschmer
Kevin Grittner wrote: > David Greco wrote: > > > Surprised to see this isn't offered as a Foreign Data Wrapper- one > > to other Postgres servers. > > People have been working on it. It seems quite likely to be > included in the 9.3 release next year. That's cool ;-) Andreas -- Really,

Re: [GENERAL] Feature Request - Postgres FDW

2012-08-07 Thread Kevin Grittner
David Greco wrote: > Surprised to see this isn't offered as a Foreign Data Wrapper- one > to other Postgres servers. People have been working on it. It seems quite likely to be included in the 9.3 release next year. -Kevin -- Sent via pgsql-general mailing list (pgsql-general@postgresql.o

[GENERAL] Feature Request - Postgres FDW

2012-08-07 Thread David Greco
Surprised to see this isn't offered as a Foreign Data Wrapper- one to other Postgres servers. I was attempting to replace some uses I have of dbilink, and found a couple places where I am using it to connect to Postgres. One is for pseudo "Autonomous Transactions"- a db link to the same postgres

[GENERAL] Feature request: pgsql's CASE...WHEN optimization

2012-01-20 Thread pasman pasmański
Hi. I think that in specific statement with many constants: CASE x WHEN const1 THEN action1 WHEN const2 THEN action2 WHEN const3 THEN action3 WHEN const4 THEN action4 END CASE; constants may be sorted at compile time, and when executed , it will be possible internally to use fast search:

Re: [GENERAL] Feature Request: Better handling of foreign keys in DELETE statements

2011-12-19 Thread Hannes Erven
Hi Daniel, > Now I wanted to delete about 10 million addresses (that are not > referenced anymore from anywhere), and have a statement like: What about: DELETE FROM address WHERE id IN ( SELECT id FROM address EXCEPT ( SELECT address_id FROM tab1 UNION AL

Re: [GENERAL] Feature Request: Better handling of foreign keys in DELETE statements

2011-12-19 Thread Pavel Stehule
2011/12/19 Marti Raudsepp : > On Mon, Dec 19, 2011 at 18:14, Pavel Stehule wrote: >> you can disable check per session if you need >> ALTER TABLE ... DISABLE TRIGGER ALL; > > This is NOT a per-session command, this applies to all connections and > queries, and may allow incorrect data into the tab

Re: [GENERAL] Feature Request: Better handling of foreign keys in DELETE statements

2011-12-19 Thread Marti Raudsepp
On Mon, Dec 19, 2011 at 18:14, Pavel Stehule wrote: > you can disable check per session if you need > ALTER TABLE ... DISABLE TRIGGER ALL; This is NOT a per-session command, this applies to all connections and queries, and may allow incorrect data into the table. Don't do this! (And it doesn't ad

Re: [GENERAL] Feature Request: Better handling of foreign keys in DELETE statements

2011-12-19 Thread Pavel Stehule
Hello 2011/12/19 Daniel Migowski : > Hi, > > > > I face the following problem: I have a large table with 12 million > addresses, referenced by 20 other tables (some containing about one million > entries). There are indexes on the foreign keys. > > > > Now I wanted to delete about 10 million addre

Re: [GENERAL] Feature Request: Better handling of foreign keys in DELETE statements

2011-12-19 Thread Chris Angelico
On Tue, Dec 20, 2011 at 3:01 AM, Daniel Migowski wrote: > DELETE FROM address > > WHERE id NOT IN (SELECT address_id FROM bank where address_id IS NOT NULL) > >    AND id NOT IN (SELECT poboxaddress_id FROM bank where poboxaddress_id IS > NOT NULL) > >    AND id NOT IN (SELECT address_id FROM bank

[GENERAL] Feature Request: Better handling of foreign keys in DELETE statements

2011-12-19 Thread Daniel Migowski
Hi, I face the following problem: I have a large table with 12 million addresses, referenced by 20 other tables (some containing about one million entries). There are indexes on the foreign keys. Now I wanted to delete about 10 million addresses (that are not referenced anymore from anywhere),

[GENERAL] Feature request: improving ENUM type manipulation

2011-09-29 Thread depstein
Until v. 9.1 enum modification was not officially supported, although hacking pg_enum made it somewhat workable. Since v. 9.1 there is a way to add values to enum types. However, - alter type ... add value doesn't work in transaction blocks, which severely limits its usefulness - there is still

Re: [GENERAL] feature request - update nowait

2011-09-08 Thread Eduardo Piombino
Don't worry ! I will surely try some different alternatives anyways, but the idea is the same, include somehow a select for update in the same sentence as the update. I'm most inclined to the last one you suggested, maybe with an equals instead of an in (I'd rather always instinctively use an equal

Re: [GENERAL] feature request - update nowait

2011-09-08 Thread Merlin Moncure
On Thu, Sep 8, 2011 at 4:32 PM, Merlin Moncure wrote: >> On Thu, Sep 8, 2011 at 1:22 PM, Merlin Moncure wrote: >>> >>> On Thu, Sep 8, 2011 at 4:01 AM, Eduardo Piombino >>> wrote: >>> > Hi, would it be possible to implement a nowait modifier to the update >>> > statement in order to tell it not t

Re: [GENERAL] feature request - update nowait

2011-09-08 Thread Merlin Moncure
> On Thu, Sep 8, 2011 at 1:22 PM, Merlin Moncure wrote: >> >> On Thu, Sep 8, 2011 at 4:01 AM, Eduardo Piombino >> wrote: >> > Hi, would it be possible to implement a nowait modifier to the update >> > statement in order to tell it not to wait and raise an error -just like >> > a >> > select for u

Re: [GENERAL] feature request - update nowait

2011-09-08 Thread Eduardo Piombino
I'm sorry, isn't it meant for table locks? I was talking about row level locking. Eduardo 2011/9/8 pasman pasmański > Try a command LOCK NOWAIT > > 2011/9/8, Eduardo Piombino : > > Hi, would it be possible to implement a *nowait *modifier to the > > *update*statement in order to tell it not to

Re: [GENERAL] feature request - update nowait

2011-09-08 Thread Eduardo Piombino
Nice. Much more maintainable IMO and quite close to what I was looking for. Thanks a lot for the suggestion, I will definitely try it/implement it right away. Still has some redundancy compared to an hypothetical nowait modifier but I think it's the very best alternative so far. Eduardo On Thu, S

Re: [GENERAL] feature request - update nowait

2011-09-08 Thread pasman pasmański
Try a command LOCK NOWAIT 2011/9/8, Eduardo Piombino : > Hi, would it be possible to implement a *nowait *modifier to the > *update*statement in order to tell it not to wait and raise an error > -just like a > select for update nowait would-, instead of defaulting to waiting forever > until the lo

Re: [GENERAL] feature request - update nowait

2011-09-08 Thread Merlin Moncure
On Thu, Sep 8, 2011 at 4:01 AM, Eduardo Piombino wrote: > Hi, would it be possible to implement a nowait modifier to the update > statement in order to tell it not to wait and raise an error -just like a > select for update nowait would-, instead of defaulting to waiting forever > until the lock b

Re: [GENERAL] feature request - update nowait

2011-09-08 Thread Simon Riggs
On Thu, Sep 8, 2011 at 10:01 AM, Eduardo Piombino wrote: > Hi, would it be possible to implement a nowait modifier to the update > statement in order to tell it not to wait and raise an error -just like a > select for update nowait would-, instead of defaulting to waiting forever > until the lock

[GENERAL] feature request - update nowait

2011-09-08 Thread Eduardo Piombino
Hi, would it be possible to implement a *nowait *modifier to the *update*statement in order to tell it not to wait and raise an error -just like a select for update nowait would-, instead of defaulting to waiting forever until the lock becomes available? The lack of such a modifier nowadays forces

Re: [GENERAL] Feature request: per user connections limit

2011-08-28 Thread pasman pasmański
Thanks, i'll try it tomorrow -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Feature request: per user connections limit

2011-08-27 Thread Jerry Sievers
pasman pasmañski writes: > Hi. > > Is this possible to limit number of connections for given user/role? > Postgres 8.4.8. Yes. Read up on ... create/alter role alter role $role connection limit 10; > > pasman > > -- > Sent via pgsql-general mailing list (pgsql-general@postgresq

[GENERAL] Feature request: per user connections limit

2011-08-27 Thread pasman pasmański
Hi. Is this possible to limit number of connections for given user/role? Postgres 8.4.8. -- pasman -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Feature Request: DDL + RegExp - definitions

2011-08-24 Thread Tom Lane
Merlin Moncure writes: > On Wed, Aug 24, 2011 at 11:30 AM, Richard Broersma >> The following email illustrates the behavior that is undesirable (to me). >> http://www.mail-archive.com/pgadmin-support@postgresql.org/msg11482.html > this is IMO not a feature, but a bug. No, it's not a bug, it's ju

Re: [GENERAL] Feature Request: DDL + RegExp - definitions

2011-08-24 Thread Richard Broersma
On Wed, Aug 24, 2011 at 10:14 AM, Merlin Moncure wrote: > this is IMO not a feature, but a bug. Would the feature I'm requesting be a bug or is it the current behavior that would be considered a bug? -- Regards, Richard Broersma Jr. -- Sent via pgsql-general mailing list (pgsql-general@post

Re: [GENERAL] Feature Request: DDL + RegExp - definitions

2011-08-24 Thread Merlin Moncure
On Wed, Aug 24, 2011 at 11:30 AM, Richard Broersma wrote: > It'd be nice if the catalog entries that store the DDL constraints > definitions and view definitions with regular expressions strings > would preserved any escape string syntax (i.e.E) for RegExp > backslashes. > > For example, PGAdmin u

[GENERAL] Feature Request: DDL + RegExp - definitions

2011-08-24 Thread Richard Broersma
It'd be nice if the catalog entries that store the DDL constraints definitions and view definitions with regular expressions strings would preserved any escape string syntax (i.e.E) for RegExp backslashes. For example, PGAdmin uses these catalog entries to produce Create or Replace scripts to that

Re: [GENERAL] Feature request: Replicate only parts of a database

2011-05-27 Thread Andrew Sullivan
On Fri, May 27, 2011 at 06:53:17AM +0200, A B wrote: > hope) that by creating a view and select * from the view and send it > over to the other server or use triggers to record what rows are > inserted and deleted. (I have not written that part yet) You could do this today with Slony or Londiste

Re: [GENERAL] Feature request: Replicate only parts of a database

2011-05-27 Thread Peter Geoghegan
On 27 May 2011 05:53, A B wrote: > I have a small problem, in a database I need to export parts of a > database table to another server, and I could easily accomplish  ( I > hope)  that by creating a view and select * from the view and send it > over to the other server or use triggers to record

[GENERAL] Feature request: Replicate only parts of a database

2011-05-26 Thread A B
Hi there! I have a small problem, in a database I need to export parts of a database table to another server, and I could easily accomplish ( I hope) that by creating a view and select * from the view and send it over to the other server or use triggers to record what rows are inserted and delete

Re: [GENERAL] Feature Request, aggregate functions distinct on

2011-04-26 Thread Rob Sargent
On 04/26/2011 04:33 PM, Tom Lane wrote: luda posch writes: I am not an expert on the official sql spec, but I think it would be useful if distinct on() could be used within an aggregate when supplied with another column name. For example: select sum(distinct on(id) order_price) from order

Re: [GENERAL] Feature Request, aggregate functions distinct on

2011-04-26 Thread Tom Lane
luda posch writes: > I am not an expert on the official sql spec, but I think it would be useful > if distinct on() could be used within an aggregate when supplied with > another column name. For example: > select sum(distinct on(id) order_price) from order_table; > select sum(distinct on(email_

[GENERAL] Feature Request, aggregate functions distinct on

2011-04-26 Thread luda posch
I have used and it is quite useful the 'distinct' keyword within aggregate functions. I am not an expert on the official sql spec, but I think it would be useful if distinct on() could be used within an aggregate when supplied with another column name. For example: select sum(distinct on(id) ord

[GENERAL] Feature request psql

2011-04-19 Thread Wim Bertels
Hallo, i have a possible feature request. It is not possible to get the sql statement itself and the output of the statement in a user-friendly way to an output file (option \o psql), this is only possible outside of psql, when calling this function with an option -L (psql -L log.txt). The nice t

[GENERAL] [feature request] left/right join + limit optimization

2010-12-21 Thread pasman pasmański
hello. I think that left/right joins and limit may be optimized. When there aren't WHERE conditions this may be executed as below: Limit N Merge Left Join Sort Top N Bitmap Heap Scan ... Sort Bitmap Heap Scan ... pasman -- Sent via pgsql-general mailing li

[GENERAL] feature request: log bytes out for each request

2010-11-17 Thread Aleksey Tsalolikhin
Hi. Could you please consider logging size of reply, like Apache httpd does with its logfile? We've started having intermittent spikes in network usage (the network interface on the DB server is getting maxed out) and I suspect there is a single very large query (just a working hypothesis at this

Re: [GENERAL] Feature request for this mail list

2010-11-02 Thread Martijn van Oosterhout
On Tue, Nov 02, 2010 at 11:58:35AM -0400, zhong ming wu wrote: > I looked on PG website but couldn't find admin email for this list > > I would like list emails to have extra 'reply-to' header addressed to the > list > > Is it too much to ask? When replying from a mobile client it can be tricky

Re: [GENERAL] Feature request for this mail list

2010-11-02 Thread Tom Lane
zhong ming wu writes: > I would like list emails to have extra 'reply-to' header addressed to the > list > Is it too much to ask? Yes. This is something that would break the messaging style that everyone on these lists uses. Reply-to-all is the standard custom around here.

[GENERAL] Feature request for this mail list

2010-11-02 Thread zhong ming wu
I looked on PG website but couldn't find admin email for this list I would like list emails to have extra 'reply-to' header addressed to the list Is it too much to ask? When replying from a mobile client it can be tricky without + even from a bigger client most often I forgot

Re: [GENERAL] Feature request: pgcron

2010-09-23 Thread Magnus Hagander
On Thu, Sep 23, 2010 at 16:20, Martin A. Brooks wrote: > Hi > > I did not see this feature on the TODO page on the wiki.  I apologise if I > have overlooked something similar. > > I would like postgres to have a cron-like feature for scheduling things to > happen at particular times. > > An exampl

[GENERAL] Feature request: pgcron

2010-09-23 Thread Martin A. Brooks
Hi I did not see this feature on the TODO page on the wiki. I apologise if I have overlooked something similar. I would like postgres to have a cron-like feature for scheduling things to happen at particular times. An example of this might be routinely purging data from tables, or vacuuming spe

Re: [GENERAL] Feature Request: bzip2 support in pg_dump, pg_restore

2010-08-13 Thread Tom Lane
Greg Smith writes: > Daniel Migowski wrote: >> A small investigation showed to me that bzip2 compressed sql files >> take only 60% of the space of gz compressed files. Since bzip2 is >> fairly common today, could one add an option to pg_dump and pg_restore >> supporting this compression type in

Re: [GENERAL] Feature Request: bzip2 support in pg_dump, pg_restore

2010-08-13 Thread Greg Smith
Daniel Migowski wrote: A small investigation showed to me that bzip2 compressed sql files take only 60% of the space of gz compressed files. Since bzip2 is fairly common today, could one add an option to pg_dump and pg_restore supporting this compression type in their custom format? Or do the

Re: [GENERAL] Feature Request: bzip2 support in pg_dump, pg_restore

2010-08-13 Thread Scott Ribe
pg_dumpall | bzip2 > mydump.txt.bz2 bunzip2 -kc mydump.txt.bz2 | bin/psql template1 -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http:

Re: [GENERAL] Feature Request: bzip2 support in pg_dump, pg_restore

2010-08-13 Thread Adrian von Bidder
Heyho! On Friday 13 August 2010 10.57:13 Daniel Migowski wrote: > A small investigation showed to me that bzip2 compressed sql files take > only 60% of the space of gz compressed files. But bzip2 is very slow. I think if there should be changes to the data compression, xz is probably the futur

[GENERAL] Feature Request: bzip2 support in pg_dump, pg_restore

2010-08-13 Thread Daniel Migowski
Hi, dear postgres developers, A small investigation showed to me that bzip2 compressed sql files take only 60% of the space of gz compressed files. Since bzip2 is fairly common today, could one add an option to pg_dump and pg_restore supporting this compression type in their custom format? Or

Re: [GENERAL] feature request: create table with unique constraint

2009-12-17 Thread Tom Lane
writes: > , unique ( a_id , ( case when actual then 0 else id end ) ) > Why can i not define the unique constraint in the > create table? The syntax for a unique constraint in CREATE TABLE is defined by the SQL standard, and it doesn't include expressions. More than the syntax, a unique const

[GENERAL] feature request: create table with unique constraint

2009-12-17 Thread wumpus
begin ; create table a ( id serial primary key , info text not null -- not interested here ) ; create table b ( id serial primary key , a_id int not null references a , info text not null -- not interested here , actual bool not null ) ; create unique index b_actual on b ( a_id , (

Re: [GENERAL] Feature request dblink: Security issue - dblink user+password parameters must be optional

2009-01-28 Thread Marko Kreen
On 1/28/09, Hermann Muster wrote: > When creating a view via DBLINK, the user=... and password=... parameters > shall be optional. If they are left out, then the current user accessing the > view shall be impersonated implicitely to the "dblinked" database as well. > Forcing anybody to hardcode a

[GENERAL] Feature request dblink: Security issue - dblink user+password parameters must be optional

2009-01-28 Thread Hermann Muster
When creating a view via DBLINK, the user=... and password=... parameters shall be optional. If they are left out, then the current user accessing the view shall be impersonated implicitely to the "dblinked" database as well. Forcing anybody to hardcode a password readable within the view defin

Re: [GENERAL] Feature Request: additional extension to UPDATE

2008-08-28 Thread Tom Lane
"Richard Broersma" <[EMAIL PROTECTED]> writes: > UPDATE Foo >SET ( a, b, c, ..., n ) = ( SELECT newA, newB, newC, ..., newN > FROM Bar WHERE foo.id = Bar.id ) > Any thoughts on this? It's been on the TODO list for quite some time: http://wiki.postgresql

[GENERAL] Feature Request: additional extension to UPDATE

2008-08-27 Thread Richard Broersma
Regarding: row-wise update. In a previous thread: http://archives.postgresql.org/pgsql-sql/2008-08/msg00122.php it was mentioned that the "UPDATE ... SET ... FROM ... WHERE" syntax is an extension. (an extension employed by many other db flavors.) This creates a problems since each db flavor is

Re: [GENERAL] Feature request/suggestion - CREATE SCHEMA LIKE

2008-05-07 Thread Bruce Momjian
Added to TODO: o Add CREATE SCHEMA ... LIKE that copies a schema --- [EMAIL PROTECTED] wrote: > On Mar 17, 4:01 pm, wstrzalka <[EMAIL PROTECTED]> wrote: > > Hi > > > >Features like CREATE DATABASE WITH TEMPLATE

Re: [GENERAL] Feature request

2008-05-06 Thread Scott Miller
On Sun, May 4, 2008 at 12:31 AM, Scott Marlowe <[EMAIL PROTECTED]> wrote: > > You have the same type of problem if you have this query: > > select count(id), count(int2) from table. > > They both are named count. The simple answer is to always alias your > select fields. > > select count(id) as i

Re: [GENERAL] Feature request

2008-05-03 Thread Scott Marlowe
On Fri, May 2, 2008 at 9:34 AM, Scott Miller <[EMAIL PROTECTED]> wrote: > One problem I've had in development recently is the inability to get the > aliased name of a table from a query. We're using a PHP framework for > querying, which internally uses pg_field_name to retrieve the select list > f

Re: [GENERAL] Feature request

2008-05-03 Thread Tom Lane
"Scott Miller" <[EMAIL PROTECTED]> writes: > One problem I've had in development recently is the inability to get the > aliased name of a table from a query. We're using a PHP framework for > querying, which internally uses pg_field_name to retrieve the select list > field name, which is great. T

[GENERAL] Feature request

2008-05-03 Thread Scott Miller
One problem I've had in development recently is the inability to get the aliased name of a table from a query. We're using a PHP framework for querying, which internally uses pg_field_name to retrieve the select list field name, which is great. There is alwo pg_table_name, to retrieve the table t

Re: [GENERAL] Feature request/suggestion - CREATE SCHEMA LIKE

2008-03-25 Thread Decibel!
On Mar 18, 2008, at 7:17 AM, Joris Dobbelsteen wrote: Features like CREATE DATABASE WITH TEMPLATE or CREATE TABLE LIKE are very usefull but it would be great to have such a feature on the mid-level too. I mean something CREATE SCHEMA LIKE that would copy all the template schema relations, e

Re: [GENERAL] Feature request/suggestion - CREATE SCHEMA LIKE

2008-03-21 Thread ipajor
On Mar 17, 4:01 pm, wstrzalka <[EMAIL PROTECTED]> wrote: > Hi > >Features like CREATE DATABASE WITH TEMPLATE or CREATE TABLE LIKE > are very usefull but it would be great to have such a feature on the > mid-level too. I mean something CREATE SCHEMA LIKE that would copy all > the template schema

Re: [GENERAL] Feature request/suggestion - CREATE SCHEMA LIKE

2008-03-18 Thread Dawid Kuroczko
On Mon, Mar 17, 2008 at 9:01 PM, wstrzalka <[EMAIL PROTECTED]> wrote: > Hi > >Features like CREATE DATABASE WITH TEMPLATE or CREATE TABLE LIKE > are very usefull but it would be great to have such a feature on the > mid-level too. I mean something CREATE SCHEMA LIKE that would copy all > the

Re: [GENERAL] Feature request/suggestion - CREATE SCHEMA LIKE

2008-03-18 Thread Bruce Momjian
Joris Dobbelsteen wrote: > wstrzalka wrote: > > Hi > > > >Features like CREATE DATABASE WITH TEMPLATE or CREATE TABLE LIKE > > are very usefull but it would be great to have such a feature on the > > mid-level too. I mean something CREATE SCHEMA LIKE that would copy all > > the template schema

Re: [GENERAL] Feature request/suggestion - CREATE SCHEMA LIKE

2008-03-18 Thread Joris Dobbelsteen
wstrzalka wrote: Hi Features like CREATE DATABASE WITH TEMPLATE or CREATE TABLE LIKE are very usefull but it would be great to have such a feature on the mid-level too. I mean something CREATE SCHEMA LIKE that would copy all the template schema relations, etc... What do you think about it ?

[GENERAL] Feature request/suggestion - CREATE SCHEMA LIKE

2008-03-18 Thread wstrzalka
Hi Features like CREATE DATABASE WITH TEMPLATE or CREATE TABLE LIKE are very usefull but it would be great to have such a feature on the mid-level too. I mean something CREATE SCHEMA LIKE that would copy all the template schema relations, etc... What do you think about it ? Would it be hard to

  1   2   >