[HACKERS] PostgreSQL Process memory architecture

2013-05-27 Thread Ben Zeev, Lior
Hi, I have a question regarding the memory consumption per process in PostgreSQL 9.2 Does each PostgreSQL process allocating in its own memory (Not shared memory) a cache of all the database catalog which it access during the SQL execution? I mean does each process holds all the catalog indexes

Re: [HACKERS] PostgreSQL Process memory architecture

2013-05-27 Thread Atri Sharma
Does each PostgreSQL process allocating in its own memory (Not shared memory) a cache of all the database catalog which it access during the SQL execution? I mean does each process holds all the catalog indexes data which it accessed, all the catalog index statistics etc’ accessed AFAIK,

Re: [HACKERS] Planning incompatibilities for Postgres 10.0

2013-05-27 Thread Michael Paquier
On Mon, May 27, 2013 at 2:01 PM, Craig Ringer cr...@2ndquadrant.com wrote: On 05/25/2013 05:39 PM, Simon Riggs wrote: - Switching to single-major-version release numbering. The number of people who say PostgreSQL 9.x is amazing; even *packagers* get this wrong and produce postgresql-9

[HACKERS] repeated warnings with 9.3 Beta 1 on windows

2013-05-27 Thread Marc Mamin
Hello, while playing with 9.3 Beta 1 on windows, I've found following small issue: create table t as select 'a' from generate_series (1,20) the warning is returned more than once: WARNUNG: Spalte ?column? hat Typ unknown DETAIL: Relation wird trotzdem erzeugt. WARNUNG:

Re: [HACKERS] PostgreSQL Process memory architecture

2013-05-27 Thread Atri Sharma
On Mon, May 27, 2013 at 3:41 PM, Ben Zeev, Lior lior.ben-z...@hp.com wrote: Hi Atri, Thanks for your answer! Do you have idea what may be the reason that PostgreSQL process consume more memory when there are more partial indexes on the DB table? Well, I am not too sure, but indexes always

Re: [HACKERS] PostgreSQL Process memory architecture

2013-05-27 Thread Ben Zeev, Lior
Thanks Atri! Do you know why PostgreSQL store the indexes in memory per process and not in the shared memory? Is there a way to prevent it store the indexes data per process, and force it storing it in the shared memory? Lior -Original Message- From: Atri Sharma

Re: [HACKERS] [BUGS] COPY .... (FORMAT binary) syntax doesn't work

2013-05-27 Thread Simon Riggs
On 26 May 2013 16:35, Heikki Linnakangas hlinnakan...@vmware.com wrote: My attempts to fix that look pretty ugly, so I'm not even going to post them. I can stop the error on binary by causing errors on csv and text, obviously not a fix. Any grammar based fix looks like it would restrict the

Re: [HACKERS] [BUGS] COPY .... (FORMAT binary) syntax doesn't work

2013-05-27 Thread Simon Riggs
On 26 May 2013 17:10, Tom Lane t...@sss.pgh.pa.us wrote: Heikki Linnakangas hlinnakan...@vmware.com writes: More readable would be to invent an intermediate nonterminal falling between ColId and ColLabel, whose expansion would be IDENT | unreserved_keyword | col_name_keyword |

Re: [HACKERS] repeated warnings with 9.3 Beta 1 on windows

2013-05-27 Thread Amit Kapila
On Monday, May 27, 2013 3:07 PM Marc Mamin wrote: Hello, while playing with 9.3 Beta 1 on windows, I've found following small issue:   create table t as select 'a' from generate_series (1,20)   the warning is returned more than once:     WARNUNG:  Spalte ?column? hat Typ unknown

Re: [HACKERS] PostgreSQL Process memory architecture

2013-05-27 Thread Atri Sharma
On Mon, May 27, 2013 at 3:55 PM, Ben Zeev, Lior lior.ben-z...@hp.com wrote: Thanks Atri! Do you know why PostgreSQL store the indexes in memory per process and not in the shared memory? Is there a way to prevent it store the indexes data per process, and force it storing it in the shared

Re: [HACKERS] PostgreSQL Process memory architecture

2013-05-27 Thread Amit Langote
On Mon, May 27, 2013 at 7:25 PM, Ben Zeev, Lior lior.ben-z...@hp.com wrote: Thanks Atri! Do you know why PostgreSQL store the indexes in memory per process and not in the shared memory? Is there a way to prevent it store the indexes data per process, and force it storing it in the shared

Re: [HACKERS] PostgreSQL Process memory architecture

2013-05-27 Thread Atri Sharma
An index is built in backend process's local memory, but, when accessing, index pages are stored in shared memory. That is, for example, when an index scan is performed, index pages are brought into shared memory and accessed from there. Yes, brought into the shared disk buffers and

Re: [HACKERS] Planning incompatibilities for Postgres 10.0

2013-05-27 Thread Bruce Momjian
On Sun, May 26, 2013 at 09:18:41PM -0400, Stephen Frost wrote: * Josh Berkus (j...@agliodbs.com) wrote: and it's entirely possible that we'll be able to implement SMs without breaking pgupgrade. I'd certainly hope so.. It's certainly not obvious, to me at least, why a new SM or

Re: [HACKERS] PostgreSQL Process memory architecture

2013-05-27 Thread Stephen Frost
* Atri Sharma (atri.j...@gmail.com) wrote: Does each PostgreSQL process allocating in its own memory (Not shared memory) a cache of all the database catalog which it access during the SQL execution? This information is pulled into a backend-local cache, but it should only be cached while

Re: [HACKERS] PostgreSQL Process memory architecture

2013-05-27 Thread Stephen Frost
* Atri Sharma (atri.j...@gmail.com) wrote: On Mon, May 27, 2013 at 3:41 PM, Ben Zeev, Lior lior.ben-z...@hp.com wrote: Do you have idea what may be the reason that PostgreSQL process consume more memory when there are more partial indexes on the DB table? It might use a bit more, but it

Re: [HACKERS] PostgreSQL Process memory architecture

2013-05-27 Thread Atri Sharma
AFAIK, the shared disk buffers are the only part shared between the processes. There's a bit of other information shared, but disk buffers are certainly the bulk of it. The other information being locks? Regards, Atri -- Regards, Atri l'apprenant -- Sent via pgsql-hackers mailing

Re: [HACKERS] PostgreSQL Process memory architecture

2013-05-27 Thread Stephen Frost
Lior, * Ben Zeev, Lior (lior.ben-z...@hp.com) wrote: Do you know why PostgreSQL store the indexes in memory per process and not in the shared memory? The disk blocks from an index are not stored per-process, they are kept in shared memory. When building an index, PG can only use one process

Re: [HACKERS] PostgreSQL Process memory architecture

2013-05-27 Thread Stephen Frost
Lior, * Ben Zeev, Lior (lior.ben-z...@hp.com) wrote: Does each PostgreSQL process allocating in its own memory (Not shared memory) a cache of all the database catalog which it access during the SQL execution? PG will look up and cache the catalog information regarding all of the relations

Re: [HACKERS] PostgreSQL Process memory architecture

2013-05-27 Thread Stephen Frost
* Atri Sharma (atri.j...@gmail.com) wrote: If your index is big/you have too many indexes in your database, it should affect *all* backends accessing that specific database. More indexes will require more disk space, certainly, but tablespaces can be used to seperate databases, or tables, or

Re: [HACKERS] PostgreSQL Process memory architecture

2013-05-27 Thread Atri Sharma
A better place to look would be the documentation for the release of PG which you are on, or the latest release otherwise, which is: http://www.postgresql.org/docs/9.2/static/storage.html Oops,yes,sorry about that. Thanks a ton for pointing that out. Regards, Atri -- Regards, Atri

Re: [HACKERS] PostgreSQL Process memory architecture

2013-05-27 Thread Atri Sharma
This is not generally a reason to avoid indexes. Indexes require more disk space and must be kept up to date, making them expensive to maintain due to increased disk i/o. Building an index uses as much memory as it's allowed to- it uses maintenance_work_mem to limit itself. Yes, too many

Re: [HACKERS] PostgreSQL Process memory architecture

2013-05-27 Thread Amit Langote
On Mon, May 27, 2013 at 9:16 PM, Atri Sharma atri.j...@gmail.com wrote: AFAIK, the shared disk buffers are the only part shared between the processes. There's a bit of other information shared, but disk buffers are certainly the bulk of it. The other information being locks?

Re: [HACKERS] Planning incompatibilities for Postgres 10.0

2013-05-27 Thread Stephen Frost
* Bruce Momjian (br...@momjian.us) wrote: If I had to _guess_, I would say users who are using the default storage manager would still be able to use pg_upgrade, and those using non-default storage managers perhaps can't. That would make sense. But, again, this is all so hypothetical that it

Re: [HACKERS] PostgreSQL Process memory architecture

2013-05-27 Thread Stephen Frost
* Atri Sharma (atri.j...@gmail.com) wrote: There's a bit of other information shared, but disk buffers are certainly the bulk of it. The other information being locks? Depends, but yes. Per-row locks are actually in the disk cache portion of shared buffers, but heavyweight locks have

Re: [HACKERS] PostgreSQL Process memory architecture

2013-05-27 Thread Stephen Frost
* Atri Sharma (atri.j...@gmail.com) wrote: Yes, too many indexes wont hurt much.BTW,wont making too many indexes on columns that probably dont have as many values as to deserve them(so,essentially,indiscriminately making indexes) hurt the performance/memory usage? I'd expect the performance

Re: [HACKERS] PostgreSQL Process memory architecture

2013-05-27 Thread Atri Sharma
I'd expect the performance issue would be from planner time more than memory usage- but if there is a serious memory usage issue here, then it'd be valuable to have a test case showing what's happening. We may not be releasing the sys cache in some cases or otherwise have a bug in this area.

Re: [HACKERS] PostgreSQL Process memory architecture

2013-05-27 Thread Ben Zeev, Lior
Hi Stephen, The case which I'm seeing is that I have an empty table without any rows, Create table test ( Num Integer, C1 character varying(512), C2 character varying(512), C3 character varying(512)); I create several partial indexes on this table: Create index(index_1_c1) on test(c1)

Re: [HACKERS] PostgreSQL Process memory architecture

2013-05-27 Thread Atri Sharma
On Mon, May 27, 2013 at 6:02 PM, Ben Zeev, Lior lior.ben-z...@hp.com wrote: Hi Stephen, The case which I'm seeing is that I have an empty table without any rows, Create table test ( Num Integer, C1 character varying(512), C2 character varying(512), C3 character varying(512)); I

Re: [HACKERS] PostgreSQL Process memory architecture

2013-05-27 Thread Ben Zeev, Lior
Hi Atri, But TOAST only occur if the tuple size exceed 2KB, doesn't it? Lior -Original Message- From: Atri Sharma [mailto:atri.j...@gmail.com] Sent: Monday, May 27, 2013 15:39 To: Ben Zeev, Lior Cc: Stephen Frost; Pg Hackers Subject: Re: [HACKERS] PostgreSQL Process memory

Re: [HACKERS] PostgreSQL Process memory architecture

2013-05-27 Thread Stephen Frost
Lior, * Ben Zeev, Lior (lior.ben-z...@hp.com) wrote: The case which I'm seeing is that I have an empty table without any rows, Create table test ( Num Integer, C1 character varying(512), C2 character varying(512), C3 character varying(512)); I create several partial indexes on

Re: [HACKERS] PostgreSQL Process memory architecture

2013-05-27 Thread Stephen Frost
* Atri Sharma (atri.j...@gmail.com) wrote: It is just a hunch, but all of your attributes are character varying. Could TOAST be an issue here? TOAST tables are only created when needed. In addition, I believe Lior's concerned about memory utilization and not disk usage; memory utilization

Re: [HACKERS] PostgreSQL Process memory architecture

2013-05-27 Thread Hannu Krosing
On 05/27/2013 01:25 PM, Ben Zeev, Lior wrote: Thanks Atri! Do you know why PostgreSQL store the indexes in memory per process and not in the shared memory? From shared_buffers point of view tables and indexes are identical, both use the same shared memory in (usually) 8KB pages Is there a

Re: [HACKERS] PostgreSQL Process memory architecture

2013-05-27 Thread Ben Zeev, Lior
Hi Stephen, Yes, The memory utilization per PostgreSQL backend process is when running queries against this tables, For example: select * from test where num=2 and c2='abc' When It start it doesn't consume to much memory, But as it execute against more and more indexes the memory consumption

Re: [HACKERS] PostgreSQL Process memory architecture

2013-05-27 Thread Stephen Frost
Lior, * Ben Zeev, Lior (lior.ben-z...@hp.com) wrote: Yes, The memory utilization per PostgreSQL backend process is when running queries against this tables, For example: select * from test where num=2 and c2='abc' When It start it doesn't consume to much memory, But as it execute against

[HACKERS] Unsigned integer types

2013-05-27 Thread Maciej Gajewski
Hi all I know this topic was discussed before, but there doesn't seem to be any conclusion. The lack of unsigned integer types is one of the biggest sources of grief in my daily work with pgsql. Before I go and start hacking, I'd like to discuss few points: 1. Is there a strong objection

Re: [HACKERS] Planning incompatibilities for Postgres 10.0

2013-05-27 Thread Bruce Momjian
On Mon, May 27, 2013 at 08:26:48AM -0400, Stephen Frost wrote: * Bruce Momjian (br...@momjian.us) wrote: If I had to _guess_, I would say users who are using the default storage manager would still be able to use pg_upgrade, and those using non-default storage managers perhaps can't.

Re: [HACKERS] Planning incompatibilities for Postgres 10.0

2013-05-27 Thread Hannu Krosing
On 05/26/2013 06:18 PM, Josh Berkus wrote: Not sure which ones Simon meant, but at least any new/better storage manager would seem to me to be requiring a non-pg_upgrade upgrade path unless we require the storage manager to also include a parallel implementation of pg_upgrade. Isn't this a

Re: [HACKERS] PostgreSQL Process memory architecture

2013-05-27 Thread Ben Zeev, Lior
Hi Stephen, Each query is running in a separate transaction. Why does portioning is done better rather than using partial index? Thanks, Lior -Original Message- From: Stephen Frost [mailto:sfr...@snowman.net] Sent: Monday, May 27, 2013 16:15 To: Ben Zeev, Lior Cc: Atri Sharma; Pg

Re: [HACKERS] PostgreSQL Process memory architecture

2013-05-27 Thread Stephen Frost
Lior, * Ben Zeev, Lior (lior.ben-z...@hp.com) wrote: Yes, The memory utilization per PostgreSQL backend process is when running queries against this tables, For example: select * from test where num=2 and c2='abc' When It start it doesn't consume to much memory, But as it execute against

Re: [HACKERS] PostgreSQL Process memory architecture

2013-05-27 Thread Ben Zeev, Lior
Great, Thanks !!! I will try and let you update -Original Message- From: Stephen Frost [mailto:sfr...@snowman.net] Sent: Monday, May 27, 2013 16:29 To: Ben Zeev, Lior Cc: Atri Sharma; Pg Hackers Subject: Re: [HACKERS] PostgreSQL Process memory architecture Lior, * Ben Zeev, Lior

Re: [HACKERS] PostgreSQL Process memory architecture

2013-05-27 Thread Stephen Frost
* Ben Zeev, Lior (lior.ben-z...@hp.com) wrote: Each query is running in a separate transaction. Interesting. You might also compile with CATCACHE_STATS (and not CATCACHE_FORCE_RELEASE, or perhaps with and without) and then check out your logs after the process ends (you might need to increase

Re: [HACKERS] Unsigned integer types

2013-05-27 Thread Albe Laurenz
Maciej Gajewski wrote: I know this topic was discussed before, but there doesn't seem to be any conclusion. The lack of unsigned integer types is one of the biggest sources of grief in my daily work with pgsql. Before I go and start hacking, I'd like to discuss few points: 1. Is there

Re: [HACKERS] Unsigned integer types

2013-05-27 Thread Tom Lane
Maciej Gajewski maciej.gajews...@gmail.com writes: The lack of unsigned integer types is one of the biggest sources of grief in my daily work with pgsql. Before I go and start hacking, I'd like to discuss few points: 1. Is there a strong objection against merging this kind of patch?

Re: [HACKERS] PostgreSQL Process memory architecture

2013-05-27 Thread Atri Sharma
We may still be able to do better than what we're doing today, but I'm still suspicious that you're going to run into other issues with having 500 indexes on a table anyway. +1. I am suspicious that the large number of indexes is the problem here,even if the problem is not with book keeping

Re: [HACKERS] repeated warnings with 9.3 Beta 1 on windows

2013-05-27 Thread Tom Lane
Marc Mamin m.ma...@intershop.de writes: while playing with 9.3 Beta 1 on windows, I've found following small issue: create table t as select 'a' from generate_series (1,20) the warning is returned more than once: I can't duplicate this either. Abfrage war erfolgreich durchgeführt:

Re: [HACKERS] Processing long AND/OR lists

2013-05-27 Thread Christopher Browne
On Mon, May 27, 2013 at 1:42 AM, Gurjeet Singh gurj...@singh.im wrote: Joking about 640K aside, it doesn't seem reasonable to expect a truly enormous query as is generated by the broken forms of this logic to turn out happily. I'd rather fix Slony (as done in the above patch). Yes, by

Re: [HACKERS] Planning incompatibilities for Postgres 10.0

2013-05-27 Thread Tom Lane
Bruce Momjian br...@momjian.us writes: On Mon, May 27, 2013 at 08:26:48AM -0400, Stephen Frost wrote: That said, many discussions and ideas do get shut down, perhaps too early, because of pg_upgrade considerations. If we had a plan to have an incompatible release in the future, those ideas

Re: [HACKERS] [BUGS] COPY .... (FORMAT binary) syntax doesn't work

2013-05-27 Thread Tom Lane
Simon Riggs si...@2ndquadrant.com writes: On 26 May 2013 17:10, Tom Lane t...@sss.pgh.pa.us wrote: More readable would be to invent an intermediate nonterminal falling between ColId and ColLabel, whose expansion would be IDENT | unreserved_keyword | col_name_keyword | type_func_name_keyword,

[HACKERS] New committers

2013-05-27 Thread Magnus Hagander
It's been brought to my attention that I forgot to email hackers about us adding new committers to the project, as I planned to do when I wrote my blog post about it. This is the same people as were announced during the pgcon closing session - Jeff Davis, Stephen frost, fujii masao and Noah

Re: [HACKERS] View Index and UNION

2013-05-27 Thread Stefan Keller
Hi Tom You are right: UNION ALL is correct in terms of contents (tables contents are disjunct) and of performance (no separate sort required theoretically). In my specific case even with UNION ALL the planner still chose a Seq Scan. Note that there is a KNN index with ORDER BY ... - ... involved.

Re: [HACKERS] Planning incompatibilities for Postgres 10.0

2013-05-27 Thread Alvaro Herrera
Michael Paquier escribió: On Mon, May 27, 2013 at 2:01 PM, Craig Ringer cr...@2ndquadrant.com wrote: On 05/25/2013 05:39 PM, Simon Riggs wrote: - Switching to single-major-version release numbering. The number of people who say PostgreSQL 9.x is amazing; even *packagers* get this wrong

Re: [HACKERS] Planning incompatibilities for Postgres 10.0

2013-05-27 Thread Alvaro Herrera
Tom Lane wrote: Bruce Momjian br...@momjian.us writes: Yes, we should be collecting things we want to do for a pg_upgrade break so we can see the list all in one place. Precisely. We've said right along that we reserve the right to have a non-upgradable disk format change whenever

Re: [HACKERS] Planning incompatibilities for Postgres 10.0

2013-05-27 Thread Bruce Momjian
On Mon, May 27, 2013 at 09:17:50AM -0400, Bruce Momjian wrote: That said, many discussions and ideas do get shut down, perhaps too early, because of pg_upgrade considerations. If we had a plan to have an incompatible release in the future, those ideas and discussions might be able to

Re: [HACKERS] Planning incompatibilities for Postgres 10.0

2013-05-27 Thread Simon Riggs
On 27 May 2013 15:36, Tom Lane t...@sss.pgh.pa.us wrote: Bruce Momjian br...@momjian.us writes: On Mon, May 27, 2013 at 08:26:48AM -0400, Stephen Frost wrote: That said, many discussions and ideas do get shut down, perhaps too early, because of pg_upgrade considerations. If we had a plan to

Re: [HACKERS] repeated warnings with 9.3 Beta 1 on windows

2013-05-27 Thread Marc Mamin
which makes me think that you're using some other client application Hello, Tom is right ( as always :-) : http://postgresql.1045698.n5.nabble.com/bug-repeated-messages-in-pgadmin-1-18-0-Alpha-1-query-tool-messages-pane-td5755749.html sorry for the disturbance. Marc Maminm

Re: [HACKERS] Planning incompatibilities for Postgres 10.0

2013-05-27 Thread Tom Lane
Bruce Momjian br...@momjian.us writes: On Mon, May 27, 2013 at 09:17:50AM -0400, Bruce Momjian wrote: Yes, we should be collecting things we want to do for a pg_upgrade break so we can see the list all in one place. OK, I have added a section to the TODO list for this: Desired changes

Re: [HACKERS] Planning incompatibilities for Postgres 10.0

2013-05-27 Thread Alvaro Herrera
Bruce Momjian wrote: OK, I have added a section to the TODO list for this: Desired changes that would prevent upgrades with pg_upgrade 32-bit page checksums Are there any others? I would have each data segment be self-identifying, i.e. have a magic number at the

Re: [HACKERS] New committers

2013-05-27 Thread Jaime Casanova
On Mon, May 27, 2013 at 10:32 AM, Magnus Hagander mag...@hagander.net wrote: It's been brought to my attention that I forgot to email hackers about us adding new committers to the project, as I planned to do when I wrote my blog post about it. This is the same people as were announced during

Re: [HACKERS] Planning incompatibilities for Postgres 10.0

2013-05-27 Thread Michael Paquier
On Tue, May 28, 2013 at 12:36 AM, Alvaro Herrera alvhe...@2ndquadrant.comwrote: Michael Paquier escribió: On Mon, May 27, 2013 at 2:01 PM, Craig Ringer cr...@2ndquadrant.com wrote: On 05/25/2013 05:39 PM, Simon Riggs wrote: - Switching to single-major-version release numbering. The

Re: [HACKERS] Planning incompatibilities for Postgres 10.0

2013-05-27 Thread David Fetter
On Tue, May 28, 2013 at 07:39:35AM +0900, Michael Paquier wrote: On Tue, May 28, 2013 at 12:36 AM, Alvaro Herrera alvhe...@2ndquadrant.comwrote: Michael Paquier escribió: On Mon, May 27, 2013 at 2:01 PM, Craig Ringer cr...@2ndquadrant.com wrote: On 05/25/2013 05:39 PM, Simon

Re: [HACKERS] Planning incompatibilities for Postgres 10.0

2013-05-27 Thread Alvaro Herrera
Michael Paquier escribió: On Tue, May 28, 2013 at 12:36 AM, Alvaro Herrera alvhe...@2ndquadrant.comwrote: You do -- they are used for minor releases, i.e. 10.1 would be a bugfix release for 10.0. If we continue using the current numbering scheme, 10.1 would be the major version after

Re: [HACKERS] adding import in pl/python function

2013-05-27 Thread Peter Eisentraut
On Fri, 2013-05-24 at 16:46 -0300, Claudio Freire wrote: Well, it's easy. Instead of PLyFloat_FromNumeric[0], you can make a PLyDecimal_FromNumeric. Please send a patch. This would be a welcome addition. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make

Re: [HACKERS] Planning incompatibilities for Postgres 10.0

2013-05-27 Thread Michael Paquier
On Tue, May 28, 2013 at 7:52 AM, David Fetter da...@fetter.org wrote: What's been proposed before that wouldn't break previous applications is a numbering system like this: 10.0.0 10.0.1 10.0.2 10.0.3 ... 11.0.0 11.0.1 i.e. only change the most-major version number and always leave

Re: [HACKERS] adding import in pl/python function

2013-05-27 Thread Claudio Freire
On Mon, May 27, 2013 at 8:13 PM, Peter Eisentraut pete...@gmx.net wrote: On Fri, 2013-05-24 at 16:46 -0300, Claudio Freire wrote: Well, it's easy. Instead of PLyFloat_FromNumeric[0], you can make a PLyDecimal_FromNumeric. Please send a patch. This would be a welcome addition. I can write

Re: [HACKERS] Planning incompatibilities for Postgres 10.0

2013-05-27 Thread Craig Ringer
On 05/27/2013 05:45 PM, Michael Paquier wrote: On Mon, May 27, 2013 at 2:01 PM, Craig Ringer cr...@2ndquadrant.com wrote: On 05/25/2013 05:39 PM, Simon Riggs wrote: - Switching to single-major-version release numbering. The number of people who say PostgreSQL 9.x is amazing; even *packagers*

Re: [HACKERS] Planning incompatibilities for Postgres 10.0

2013-05-27 Thread Craig Ringer
On 05/28/2013 07:22 AM, Michael Paquier wrote: On Tue, May 28, 2013 at 7:52 AM, David Fetter da...@fetter.org wrote: What's been proposed before that wouldn't break previous applications is a numbering system like this: 10.0.0 10.0.1 10.0.2 10.0.3 ... 11.0.0 11.0.1 i.e. only change

Re: [HACKERS] adding import in pl/python function

2013-05-27 Thread Peter Eisentraut
On Mon, 2013-05-27 at 20:43 -0300, Claudio Freire wrote: On Mon, May 27, 2013 at 8:13 PM, Peter Eisentraut pete...@gmx.net wrote: On Fri, 2013-05-24 at 16:46 -0300, Claudio Freire wrote: Well, it's easy. Instead of PLyFloat_FromNumeric[0], you can make a PLyDecimal_FromNumeric.

Re: [HACKERS] Planning incompatibilities for Postgres 10.0

2013-05-27 Thread Craig Ringer
On 05/28/2013 12:41 AM, Simon Riggs wrote: I'm happy with that. I was also thinking about collecting changes not related just to disk format, if any exist. Any wire protocol or syntax changes? I can't seem to find a things we want to do in wire protocol v4 doc in the wiki but I know I've seen

Re: [HACKERS] pgbench --startup option

2013-05-27 Thread Craig Ringer
On 02/11/2013 07:27 AM, Jeff Janes wrote: I created doBenchMarkConnect() to segregate bench-marking connections from utility connections. At first I thought of adding the startup code to only the normal path and leaving support for -C in the wind, but decided that was just lazy. That sounds

Re: [HACKERS] high io BUT huge amount of free memory

2013-05-27 Thread Craig Ringer
On 05/03/2013 07:09 AM, Andres Freund wrote: We've got that in 9.3 which is absolutely fabulous! But that's not related to doing DMA which you cannot (and should not!) do from userspace. You can do zero-copy DMA directly into userspace buffers. It requires root (or suitable capabilities that

Re: [HACKERS] Planning incompatibilities for Postgres 10.0

2013-05-27 Thread Joshua D. Drake
On 05/27/2013 04:58 PM, Craig Ringer wrote: On 05/28/2013 12:41 AM, Simon Riggs wrote: I'm happy with that. I was also thinking about collecting changes not related just to disk format, if any exist. Any wire protocol or syntax changes? I can't seem to find a things we want to do in wire

Re: [HACKERS] Planning incompatibilities for Postgres 10.0

2013-05-27 Thread Gavin Flower
On 28/05/13 11:48, Craig Ringer wrote: On 05/27/2013 05:45 PM, Michael Paquier wrote: On Mon, May 27, 2013 at 2:01 PM, Craig Ringercr...@2ndquadrant.com wrote: On 05/25/2013 05:39 PM, Simon Riggs wrote: - Switching to single-major-version release numbering. The number of people who say

Re: [HACKERS] Planning incompatibilities for Postgres 10.0

2013-05-27 Thread Craig Ringer
On 05/28/2013 09:39 AM, Gavin Flower wrote: Yes, I hate the Firefox style number inflation. I was arguing *for* it ;-) I don't like it much either, but (a) we do about one release a year, not one every few weeks and (b) it's very clear from a quick look at Stack Overflow or first-posts to

Re: [HACKERS] [PATCH] add --throttle to pgbench (submission 3)

2013-05-27 Thread Craig Ringer
On 05/02/2013 12:56 AM, Greg Smith wrote: On 5/1/13 4:57 AM, Fabien COELHO wrote: The use case of the option is to be able to generate a continuous gentle load for functional tests, eg in a practice session with students or for testing features on a laptop. If you add this to

Re: [HACKERS] Planning incompatibilities for Postgres 10.0

2013-05-27 Thread Joshua D. Drake
On 05/27/2013 06:53 PM, Craig Ringer wrote: On 05/28/2013 09:39 AM, Gavin Flower wrote: Yes, I hate the Firefox style number inflation. I was arguing *for* it ;-) I don't like it much either, but (a) we do about one release a year, not one every few weeks and (b) it's very clear from a

Re: [HACKERS] commit fest schedule for 9.4

2013-05-27 Thread Craig Ringer
On 05/16/2013 01:44 AM, Josh Berkus wrote: I'll also say: * we need to assign CF managers at least 2 weeks in advance of each CF * we need to replace them if they get too busy to follow-through, * and the last CF needs two managers. Strong +1 on both of those. I tried to pick up a CF that was

Re: [HACKERS] Extent Locks

2013-05-27 Thread Craig Ringer
On 05/17/2013 11:38 AM, Robert Haas wrote: maybe with a bit of modest pre-extension. When it comes to pre-extension, is it realistic to get a count of backends waiting on the lock and extend the relation by (say) 2x the number of waiting backends? Getting a list of lock waiters is always a racey

Re: [HACKERS] Extent Locks

2013-05-27 Thread Craig Ringer
On 05/18/2013 03:15 AM, Josh Berkus wrote: The drawback to this is whatever size we choose is liable to be wrong for some users. Users who currently have a lot of 16K tables would see their databases grow alarmingly. This only becomes a problem for tables that're tiny, right? If your table is

Re: [HACKERS] Logging of PAM Authentication Failure

2013-05-27 Thread Craig Ringer
On 05/11/2013 03:25 AM, Robert Haas wrote: Not really. We could potentially fix it by extending the wire protocol to allow the server to respond to the client's startup packet with a further challenge, and extend libpq to report that challenge back to the user and allow sending a response.

Re: [HACKERS] adding import in pl/python function

2013-05-27 Thread Szymon Guz
On 28 May 2013 01:55, Peter Eisentraut pete...@gmx.net wrote: On Mon, 2013-05-27 at 20:43 -0300, Claudio Freire wrote: On Mon, May 27, 2013 at 8:13 PM, Peter Eisentraut pete...@gmx.net wrote: On Fri, 2013-05-24 at 16:46 -0300, Claudio Freire wrote: Well, it's easy. Instead of