Re: [HACKERS] Logging of PAM Authentication Failure

2013-05-27 Thread Jeff Janes
On 5/27/13, Craig Ringer wrote: > We were just talking about "things we'd like to do in wire protocol 4". > > Allowing multi-stage authentication has come up repeatedly and should > perhaps go on that list. The most obvious case being "ident auth failed, > demand md5". I'd like to use LDAP with

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

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

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] 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

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] 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

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 quick

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 > https

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 pgsql-

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 Ringer 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

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 p

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] 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 soun

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

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 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. > > > > P

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 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

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 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 >>

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 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 it b

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 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 the >

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 Alvaro Herrera
Michael Paquier escribió: > On Tue, May 28, 2013 at 12:36 AM, Alvaro Herrera > wrote: > > 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 10.0. > > > Sorry fo

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 > wrote: > > > Michael Paquier escribió: > > > On Mon, May 27, 2013 at 2:01 PM, Craig Ringer > > wrote: > > > > > > > On 05/25/2013 05:39 PM, Simon Riggs wrote: > > > > - Switching

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 wrote: > Michael Paquier escribió: > > On Mon, May 27, 2013 at 2:01 PM, Craig Ringer > wrote: > > > > > On 05/25/2013 05:39 PM, Simon Riggs wrote: > > > - Switching to single-major-version release numbering. The number of > > > people who say "Post

Re: [HACKERS] New committers

2013-05-27 Thread Jaime Casanova
On Mon, May 27, 2013 at 10:32 AM, Magnus Hagander 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 the pgcon closi

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 a

Re: [HACKERS] Planning incompatibilities for Postgres 10.0

2013-05-27 Thread Tom Lane
Bruce Momjian 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 that woul

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 Simon Riggs
On 27 May 2013 15:36, Tom Lane wrote: > Bruce Momjian 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 re

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

Re: [HACKERS] Planning incompatibilities for Postgres 10.0

2013-05-27 Thread Alvaro Herrera
Tom Lane wrote: > Bruce Momjian 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 sufficiently m

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 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 produc

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 ... <-> ..." invo

[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 misch.

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

2013-05-27 Thread Tom Lane
Simon Riggs writes: > On 26 May 2013 17:10, Tom Lane 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", and >> then replace ColId_or_Sco

Re: [HACKERS] Planning incompatibilities for Postgres 10.0

2013-05-27 Thread Tom Lane
Bruce Momjian 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 and discussi

Re: [HACKERS] Processing long AND/OR lists

2013-05-27 Thread Christopher Browne
On Mon, May 27, 2013 at 1:42 AM, Gurjeet Singh 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 all m

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

2013-05-27 Thread Tom Lane
Marc Mamin 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: 20 Zeilen, 312

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] Unsigned integer types

2013-05-27 Thread Tom Lane
Maciej Gajewski 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? Basically, there is zero chance

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. I

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 t

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 (lior.

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 agains

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 Hack

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 t

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.

[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 agains

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 agains

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 grow

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

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 sho

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 indexe

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 architecture

Re: [HACKERS] PostgreSQL Process memory architecture

2013-05-27 Thread Atri Sharma
On Mon, May 27, 2013 at 6:02 PM, Ben Zeev, Lior 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 create sever

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) wh

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 a

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 performanc

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] 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

Re: [HACKERS] PostgreSQL Process memory architecture

2013-05-27 Thread Amit Langote
On Mon, May 27, 2013 at 9:16 PM, Atri Sharma 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? CreateSharedMemoryA

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 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 l'

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 i

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 in

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 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 maili

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 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 shouldn't be excess

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 whi

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 su

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

Re: [HACKERS] PostgreSQL Process memory architecture

2013-05-27 Thread Amit Langote
On Mon, May 27, 2013 at 7: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? > Is there a way to prevent it store the indexes data per process, and force it > storing it in the shared memory? > An in

Re: [HACKERS] PostgreSQL Process memory architecture

2013-05-27 Thread Atri Sharma
On Mon, May 27, 2013 at 3:55 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? > Is there a way to prevent it store the indexes data per process, and force it > storing it in the shared memory? Ok, so

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 "un

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

2013-05-27 Thread Simon Riggs
On 26 May 2013 17:10, Tom Lane wrote: > Heikki Linnakangas 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 | type_func_name_keyword", and > then replace ColId_or

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

2013-05-27 Thread Simon Riggs
On 26 May 2013 16:35, Heikki Linnakangas 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 list of formats,

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 [mailto:atri.j...@gma

Re: [HACKERS] PostgreSQL Process memory architecture

2013-05-27 Thread Atri Sharma
On Mon, May 27, 2013 at 3:41 PM, Ben Zeev, Lior 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 take up more spa

[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] Planning incompatibilities for Postgres 10.0

2013-05-27 Thread Michael Paquier
On Mon, May 27, 2013 at 2:01 PM, Craig Ringer 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" packages. Witness Ama

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 AFAI

[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