What Would You Like To Do?

Lists: pgsql-hackers
From: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
To: PostgreSQL-development Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: What Would You Like To Do?
Date: 2011-09-12 04:21:28
Message-ID: C64C198C-5811-4ACA-B9BC-04BF61088237@kineticode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Hackers,

Later this week I'm giving a [brief][] for an audience of what I hope will be corporate PostgreSQL users that covers how to get a feature developed for PostgreSQL. The idea here is that there are a lot of organizations out there with very deep commitments to PostgreSQL, who really take advantage of what it has to offer, but also would love additional features PostgreSQL doesn't offer. Perhaps some of them would be willing to fund development of the featured they need.

[brief]: http://postgresopen.org/2011/schedule/presentations/83/

Toward the end of the presentation, I'd like to make some suggestions and offer to do some match-making. I'm thinking primarily of listing some of the stuff the community would love to see done, along with the names of the folks and/or companies who, with funding, might make it happen. My question for you is: What do you want to work on?

Here's my preliminary list:

* Integrated partitioning support: Simon/2nd Quadrant
* High-CPU concurrency: Robert/Enterprise DB
* Multimaster replication and clustering: Simon/2nd Quadrant
* Multi-table indexes: Heiki? Oleg & Teodor?
* Column-leve collation support: Peter/Enterprise DB
* Faster and more fault tolerant data loading: Andrew/PGX
* Automated postgresql.conf Configuration: Greg/2nd Quadrant
* Parallel pg_dump: Andrew/PGX
* SET GLOBAL-style configuration in SQL: Greg/2nd Quadant
* Track table and index caching to improve optimizer decisions: Robert/Enterprise DB

Thanks to Greg Smith for adding a few bonus ideas I hadn't thought of. What else have you got? I don't think we necessarily have to limit ourselves to core features, BTW: projects like PostGIS and pgAdmin are also clearly popular, and new projects of that scope (or improvements to those!) would no doubt be welcome. Also, I'm highlighting PGXN and an example of how this sort of thing might work.

So, what do you want to work on? Let me know, I'll do as much match-making at the conference as I can.

Best,

David


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
Cc: PostgreSQL-development Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: What Would You Like To Do?
Date: 2011-09-12 13:01:39
Message-ID: 1315832499.5351.6.camel@fsopti579.F-Secure.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On sön, 2011-09-11 at 21:21 -0700, David E. Wheeler wrote:
> * Column-leve collation support: Peter/Enterprise DB

Column-level collation support already exists.


From: Dimitri Fontaine <dimitri(at)2ndQuadrant(dot)fr>
To: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
Cc: PostgreSQL-development Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: What Would You Like To Do?
Date: 2011-09-12 16:50:28
Message-ID: m2k49demcr.fsf@2ndQuadrant.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Hi,

"David E. Wheeler" <david(at)kineticode(dot)com> writes:
> Thanks to Greg Smith for adding a few bonus ideas I hadn't thought of. What
> else have you got? I don't think we necessarily have to limit ourselves to
> core features, BTW: projects like PostGIS and pgAdmin are also clearly
> popular, and new projects of that scope (or improvements to those!) would no
> doubt be welcome.

You could add DDL Triggers from me (2ndQuadrant) and process-based
parallel loading in pgloader (currently thread based, sucks).

Regards,
--
Dimitri Fontaine
http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support


From: David E(dot) Wheeler <david(at)kineticode(dot)com>
To: PostgreSQL-development Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: What Would You Like To Do?
Date: 2011-09-12 17:25:29
Message-ID: 8F4BF479-3CB2-4573-BDD9-0B5F0BDDEAE9@kineticode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Sep 12, 2011, at 6:01, Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:

> Column-level collation support already exists.

Yeah, just realized that. I mention to say table or column-level encoding.

Best,

David


From: Stephen Frost <sfrost(at)snowman(dot)net>
To: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
Cc: PostgreSQL-development Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: What Would You Like To Do?
Date: 2011-09-13 00:37:11
Message-ID: 20110913003711.GS12765@tamriel.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

* David E. Wheeler (david(at)kineticode(dot)com) wrote:
> Toward the end of the presentation, I'd like to make some suggestions and offer to do some match-making. I'm thinking primarily of listing some of the stuff the community would love to see done, along with the names of the folks and/or companies who, with funding, might make it happen. My question for you is: What do you want to work on?

I'm not looking for funding (probably couldn't take it if I was offered
it, heh), so I'm not sure if it should be included, but I'm still
planning to dig into revamping the logging system (if I can ever manage
to get out from under my current 'real job' workload :/). If others are
interested and have time to help, please let me know..

Thanks,

Stephen


From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Stephen Frost <sfrost(at)snowman(dot)net>
Cc: "David E(dot) Wheeler" <david(at)kineticode(dot)com>, PostgreSQL-development Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: What Would You Like To Do?
Date: 2011-09-13 04:41:52
Message-ID: CABUevExFcsghwUsukjiWLFOKkWTkVthoTvnvUVwAEd6M4yRLFw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Sep 13, 2011 2:37 AM, "Stephen Frost" <sfrost(at)snowman(dot)net> wrote:
>
> * David E. Wheeler (david(at)kineticode(dot)com) wrote:
> > Toward the end of the presentation, I'd like to make some suggestions
and offer to do some match-making. I'm thinking primarily of listing some of
the stuff the community would love to see done, along with the names of the
folks and/or companies who, with funding, might make it happen. My question
for you is: What do you want to work on?
>
> I'm not looking for funding (probably couldn't take it if I was offered
> it, heh), so I'm not sure if it should be included, but I'm still
> planning to dig into revamping the logging system (if I can ever manage
> to get out from under my current 'real job' workload :/). If others are
> interested and have time to help, please let me know..

Definitely interested in that, yes. We probably have some overlap in our
thoughts and plans, as discussed at the developer meeting in Ottawa.

Not specifically looking for funding either, but it would certainly increase
the number of hours available to work on it and as such make it happen
sooner...

/Magnus


From: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Stephen Frost <sfrost(at)snowman(dot)net>, PostgreSQL-development Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: What Would You Like To Do?
Date: 2011-09-13 05:25:34
Message-ID: 71A3F40C-71B7-4D75-BF37-C0D1F49D9A2D@kineticode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Sep 12, 2011, at 9:41 PM, Magnus Hagander wrote:

> > I'm not looking for funding (probably couldn't take it if I was offered
> > it, heh), so I'm not sure if it should be included, but I'm still
> > planning to dig into revamping the logging system (if I can ever manage
> > to get out from under my current 'real job' workload :/). If others are
> > interested and have time to help, please let me know..
>
> Definitely interested in that, yes. We probably have some overlap in our thoughts and plans, as discussed at the developer meeting in Ottawa.
>
> Not specifically looking for funding either, but it would certainly increase the number of hours available to work on it and as such make it happen sooner…

Yeah, that's the point.

Best,

David


From: Hannu Krosing <hannu(at)krosing(dot)net>
To: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
Cc: PostgreSQL-development Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: What Would You Like To Do?
Date: 2011-09-13 16:43:33
Message-ID: 1315932213.3723.11.camel@hvost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Sun, 2011-09-11 at 21:21 -0700, David E. Wheeler wrote:
> Hackers,
>
> Later this week I'm giving a [brief][] for an audience of what I
> hope will be corporate PostgreSQL users that covers how to get a
> feature developed for PostgreSQL. The idea here is that there are
> a lot of organizations out there with very deep commitments to
> PostgreSQL, who really take advantage of what it has to offer,
> but also would love additional features PostgreSQL doesn't offer.
> Perhaps some of them would be willing to fund development of the featured they need.

Hannu Krosing / 2ndQuadrant

* more enhancements to pl/python - use real function arguments,
store modules in database, direct support for postgresql types,
operators and functions, automatic startup command,
automatic ORM from table definitions, ...
* various support functionality for replication and automatic growth
of sharded databases - user defined tuple visibility functions,
triggers for DDL and ON COMMIT/ON ROLLBACK, ...
* putting time travel (which Oracle calls "flashback queries") back
into postgreSQL
* moving tuple visibility in a separate index-like structure which
should be highly compressible in most cases, as a way to enabling
index-only scans, column oriented storage and effective table
compression, ...

> [brief]: http://postgresopen.org/2011/schedule/presentations/83/
>
> Toward the end of the presentation, I'd like to make some suggestions and offer to do some match-making. I'm thinking primarily of listing some of the stuff the community would love to see done, along with the names of the folks and/or companies who, with funding, might make it happen. My question for you is: What do you want to work on?
>
> Here's my preliminary list:
>
> * Integrated partitioning support: Simon/2nd Quadrant
> * High-CPU concurrency: Robert/Enterprise DB
> * Multimaster replication and clustering: Simon/2nd Quadrant
> * Multi-table indexes: Heiki? Oleg & Teodor?
> * Column-leve collation support: Peter/Enterprise DB
> * Faster and more fault tolerant data loading: Andrew/PGX
> * Automated postgresql.conf Configuration: Greg/2nd Quadrant
> * Parallel pg_dump: Andrew/PGX
> * SET GLOBAL-style configuration in SQL: Greg/2nd Quadant
> * Track table and index caching to improve optimizer decisions: Robert/Enterprise DB
>
> Thanks to Greg Smith for adding a few bonus ideas I hadn't thought of. What else have you got? I don't think we necessarily have to limit ourselves to core features, BTW: projects like PostGIS and pgAdmin are also clearly popular, and new projects of that scope (or improvements to those!) would no doubt be welcome. Also, I'm highlighting PGXN and an example of how this sort of thing might work.
>
> So, what do you want to work on? Let me know, I'll do as much match-making at the conference as I can.
>
> Best,
>
> David
>
>
>


From: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
To: Hannu Krosing <hannu(at)krosing(dot)net>
Cc: PostgreSQL-development Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: What Would You Like To Do?
Date: 2011-09-13 16:44:36
Message-ID: 94D0BCCE-21B9-457F-8C47-CCBE7CE03050@kineticode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Sep 13, 2011, at 9:43 AM, Hannu Krosing wrote:

> Hannu Krosing / 2ndQuadrant
>
> * more enhancements to pl/python - use real function arguments,
> store modules in database, direct support for postgresql types,
> operators and functions, automatic startup command,
> automatic ORM from table definitions, ...
> * various support functionality for replication and automatic growth
> of sharded databases - user defined tuple visibility functions,
> triggers for DDL and ON COMMIT/ON ROLLBACK, ...
> * putting time travel (which Oracle calls "flashback queries") back
> into postgreSQL
> * moving tuple visibility in a separate index-like structure which
> should be highly compressible in most cases, as a way to enabling
> index-only scans, column oriented storage and effective table
> compression, ...

Awesome, thanks!

David


From: Thom Brown <thom(at)linux(dot)com>
To: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
Cc: PostgreSQL-development Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: What Would You Like To Do?
Date: 2011-09-13 16:58:11
Message-ID: CAA-aLv6rBvw1Q2yMdBPehvTJkg51KT-Z6BkYbgW+YFWgjaakOQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On 12 September 2011 05:21, David E. Wheeler <david(at)kineticode(dot)com> wrote:
> Hackers,
>
> Later this week I'm giving a [brief][] for an audience of what I hope will be corporate PostgreSQL users that covers how to get a feature developed for PostgreSQL. The idea here is that there are a lot of organizations out there with very deep commitments to PostgreSQL, who really take advantage of what it has to offer, but also would love additional features PostgreSQL doesn't offer. Perhaps some of them would be willing to fund development of the featured they need.
>
> [brief]: http://postgresopen.org/2011/schedule/presentations/83/
>
> Toward the end of the presentation, I'd like to make some suggestions and offer to do some match-making. I'm thinking primarily of listing some of the stuff the community would love to see done, along with the names of the folks and/or companies who, with funding, might make it happen. My question for you is: What do you want to work on?
>
> Here's my preliminary list:
>
> * Integrated partitioning support: Simon/2nd Quadrant
> * High-CPU concurrency: Robert/Enterprise DB
> * Multimaster replication and clustering: Simon/2nd Quadrant
> * Multi-table indexes: Heiki? Oleg & Teodor?
> * Column-leve collation support: Peter/Enterprise DB
> * Faster and more fault tolerant data loading: Andrew/PGX
> * Automated postgresql.conf Configuration: Greg/2nd Quadrant
> * Parallel pg_dump: Andrew/PGX
> * SET GLOBAL-style configuration in SQL: Greg/2nd Quadant
> * Track table and index caching to improve optimizer decisions: Robert/Enterprise DB
>
> Thanks to Greg Smith for adding a few bonus ideas I hadn't thought of. What else have you got? I don't think we necessarily have to limit ourselves to core features, BTW: projects like PostGIS and pgAdmin are also clearly popular, and new projects of that scope (or improvements to those!) would no doubt be welcome. Also, I'm highlighting PGXN and an example of how this sort of thing might work.
>
> So, what do you want to work on? Let me know, I'll do as much match-making at the conference as I can.

I have a wish-list of features, but I don't know of anyone specific
who could work on them. In addition to some you've mentioned they
are:

* Distributed queries
* Multi-threaded query operations (single queries making use of more
than 1 core in effect)
* Stored procedures
* Automatic failover re-subscription (okay, I don't know what you'd
call this, but where you have several standbys, the primary fails, one
standby is automatically promoted, and the remaining standbys
automatically subscribe to the newly-promoted one without needing a
new base backup)
* ROLLUP and CUBE
* pg_dumpall custom format (Guillaume mentioned this was on his to-do
list previously)

--
Thom Brown
Twitter: @darkixion
IRC (freenode): dark_ixion
Registered Linux user: #516935

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


From: Michael Nolan <htfoot(at)gmail(dot)com>
To: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
Cc: PostgreSQL-development Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: What Would You Like To Do?
Date: 2011-09-13 17:13:07
Message-ID: CAOzAquKRMpCgHMOFzPn90X2cTAK8oc6kUHzmz=_9xOUZ-QZ3mg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

The lists all seem to be focusing on the things that the developers would
like to add to PostgreSQL, what about some things that users or ISPs might
like to have, and thus perhaps something that companies might actually see
as worth funding?

For example:

A fully integrated ability to query across multiple databases,possibly on
multiple servers, something Oracle has had for nearly two decades.

Complete isolation at the user level, allowing an ISP to support multiple
independent customers on a server without having to fiddle with multiple
back ends each running on a separate port, a feature that MySQL has had for
as far back as I can recall, and one of the reasons ISPs are more likely to
offer MySQL than PostgreSQL.

The ability to restore a table from a backup file to a different table name
in the same database and schema.

A built-in report writer, capable of things like column totals. (SqlPlus
has this, even though it isn't very pretty.)
--
Mike Nolan


From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: What Would You Like To Do?
Date: 2011-09-13 17:26:10
Message-ID: 4E6F9232.2040905@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


On 09/13/2011 10:13 AM, Michael Nolan wrote:
> The lists all seem to be focusing on the things that the developers
> would like to add to PostgreSQL, what about some things that users or
> ISPs might like to have, and thus perhaps something that companies might
> actually see as worth funding?

Well just my own two cents ... but it all depends on who is doing the
funding. At this point 80% of the work CMD codes for Pg (or tertiary
projects and modules) is funded by companies. So let's not assume that
companies aren't funding things. They are.

>
> For example:
>
> A fully integrated ability to query across multiple databases,possibly
> on multiple servers, something Oracle has had for nearly two decades.

That isn't the approach to take. The fact that Oracle has it is not a
guarantee that it is useful or good. If you need to query across
databases (assuming within the same cluster) then you designed your
database wrong and should have used our SCHEMA support (what Oracle
calls Namespaces) instead.

>
> Complete isolation at the user level, allowing an ISP to support
> multiple independent customers on a server without having to fiddle with
> multiple back ends each running on a separate port, a feature that MySQL
> has had for as far back as I can recall, and one of the reasons ISPs are
> more likely to offer MySQL than PostgreSQL.

Now this would definitely be nice. It is frustrating that we don't have
per database users.

>
> The ability to restore a table from a backup file to a different table
> name in the same database and schema.
>

This can be done but agreed it is not intuitive.

> A built-in report writer, capable of things like column totals.
> (SqlPlus has this, even though it isn't very pretty.)

There are a billion and one tools that do this without us having to
reinvent the wheel. Why would we support that?

Sincerely,

Joshua D. Drake
--
Command Prompt, Inc. - http://www.commandprompt.com/
PostgreSQL Support, Training, Professional Services and Development
The PostgreSQL Conference - http://www.postgresqlconference.org/
@cmdpromptinc - @postgresconf - 509-416-6579


From: Michael Nolan <htfoot(at)gmail(dot)com>
To: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: What Would You Like To Do?
Date: 2011-09-13 18:51:07
Message-ID: CAOzAquKSpQ3v+S9p6OfrvyveFW6B=jFcN+7rKbYits7zjfePEw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Tue, Sep 13, 2011 at 12:26 PM, Joshua D. Drake <jd(at)commandprompt(dot)com>wrote:

>
> On 09/13/2011 10:13 AM, Michael Nolan wrote:
>
>> The lists all seem to be focusing on the things that the developers
>> would like to add to PostgreSQL, what about some things that users or
>> ISPs might like to have, and thus perhaps something that companies might
>> actually see as worth funding?
>>
>
> Well just my own two cents ... but it all depends on who is doing the
> funding. At this point 80% of the work CMD codes for Pg (or tertiary
> projects and modules) is funded by companies. So let's not assume that
> companies aren't funding things. They are.

But perhaps if a few 'commercial' features were on the wish list there would
be more companies willing to fund development? The developers get a bit of
what they want to work on, the production users get a bit of what they need,
everybody's happy.

> For example:
>>
>> A fully integrated ability to query across multiple databases,possibly
>> on multiple servers, something Oracle has had for nearly two decades.
>>
>
>
> That isn't the approach to take. The fact that Oracle has it is not a
> guarantee that it is useful or good. If you need to query across databases
> (assuming within the same cluster) then you designed your database wrong and
> should have used our SCHEMA support (what Oracle calls Namespaces) instead.

This is the difference between developers and real world users. Real world
users may not have the ability, time or resources to redesign their
databases just because that's the 'best' way to do something. Will it be
the most efficient way to do it? Almost certainly not.

I've been involved in a few corporate mergers, and there was a short term
need to do queries on the combined databases while the tiger team handling
the IT restructuring figured out how (or whether) to merge the dabases
together. (One of these happened to be an Oracle/Oracle situation, it was a
piece of cake even though the two data centers were 750 miles apart and the
table structures had almost nothing in common. Another was a two week
headache, the third was even worse!)

In a perfect world, it would be nice if one could do combined queries
linking a PostgreSQL database with an Oracle one, or a MySQL one, too.
Because sometimes, that's what you gotta do. Even something that is several
hundred times slower is going to be faster than merging the databases
together. When I do this today, I have to write a program (in perl or php)
that accesses both databases and merges it by hand.

>
>> The ability to restore a table from a backup file to a different table
>> name in the same database and schema.
>>
>>
> This can be done but agreed it is not intuitive.

Can you elaborate on tha a bit, please? The only way I've been able to do
it is to edit the dump file to change the table name. That's not very
practical with a several gigabyte dump file, even less so with one that is
much larger. If this capability already exists, is it documented?

> (SqlPlus has this, even though it isn't very pretty.)
>>
> A built-in report writer, capable of things like column totals.
>
> There are a billion and one tools that do this without us having to
> reinvent the wheel. Why would we support that?
>

There are other databases out there, too, why reinvent the wheel by working
on PostgreSQL? :-)

The question shoud be, would this be USEFUL?
--
Mike Nolan


From: Rodrigo Gonzalez <rjgonzale(at)estrads(dot)com(dot)ar>
To: Michael Nolan <htfoot(at)gmail(dot)com>
Cc: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: What Would You Like To Do?
Date: 2011-09-13 19:01:32
Message-ID: 4E6FA88C.1050605@estrads.com.ar
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On 09/13/2011 03:51 PM, Michael Nolan wrote:
> For example:
>
>
> A fully integrated ability to query across multiple
> databases,possibly
> on multiple servers, something Oracle has had for nearly two
> decades.
>
>
>
> That isn't the approach to take. The fact that Oracle has it is
> not a guarantee that it is useful or good. If you need to query
> across databases (assuming within the same cluster) then you
> designed your database wrong and should have used our SCHEMA
> support (what Oracle calls Namespaces) instead.
>
>
> This is the difference between developers and real world users. Real
> world users may not have the ability, time or resources to redesign
> their databases just because that's the 'best' way to do something.
> Will it be the most efficient way to do it? Almost certainly not.
>
> I've been involved in a few corporate mergers, and there was a short
> term need to do queries on the combined databases while the tiger team
> handling the IT restructuring figured out how (or whether) to merge
> the dabases together. (One of these happened to be an Oracle/Oracle
> situation, it was a piece of cake even though the two data centers
> were 750 miles apart and the table structures had almost nothing in
> common. Another was a two week headache, the third was even worse!)
>
> In a perfect world, it would be nice if one could do combined queries
> linking a PostgreSQL database with an Oracle one, or a MySQL one,
> too. Because sometimes, that's what you gotta do. Even something
> that is several hundred times slower is going to be faster than
> merging the databases together. When I do this today, I have to write
> a program (in perl or php) that accesses both databases and merges it
> by hand.
>
Can't you do that with FDW that is present in 9.1?

Check http://wiki.postgresql.org/wiki/Foreign_data_wrappers


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rodrigo Gonzalez <rjgonzale(at)estrads(dot)com(dot)ar>
Cc: Michael Nolan <htfoot(at)gmail(dot)com>, "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: What Would You Like To Do?
Date: 2011-09-13 19:52:57
Message-ID: 11117.1315943577@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Rodrigo Gonzalez <rjgonzale(at)estrads(dot)com(dot)ar> writes:
>> In a perfect world, it would be nice if one could do combined queries
>> linking a PostgreSQL database with an Oracle one, or a MySQL one,

> Can't you do that with FDW that is present in 9.1?

FDW provides the structure within which that will eventually be
possible, but there's no Oracle or MySQL wrapper today ... and there are
a lot of FDW restrictions that need to be worked on, too.

regards, tom lane


From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Michael Nolan <htfoot(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: What Would You Like To Do?
Date: 2011-09-13 19:55:25
Message-ID: 4E6FB52D.7000005@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


On 09/13/2011 11:51 AM, Michael Nolan wrote:

>
> The ability to restore a table from a backup file to a different
> table
> name in the same database and schema.
>
>
> This can be done but agreed it is not intuitive.
>
>
> Can you elaborate on tha a bit, please? The only way I've been able to
> do it is to edit the dump file to change the table name. That's not
> very practical with a several gigabyte dump file, even less so with one
> that is much larger. If this capability already exists, is it documented?

You use the -Fc method, extract the TOC and edit just the TOC (so you
don't have to edit a multi-gig file)

>
> (SqlPlus has this, even though it isn't very pretty.)
>
> A built-in report writer, capable of things like column totals.
>
> There are a billion and one tools that do this without us having to
> reinvent the wheel. Why would we support that?
>
>
> There are other databases out there, too, why reinvent the wheel by
> working on PostgreSQL? :-)
>
> The question shoud be, would this be USEFUL?

Personally, I don't think so but others may disagree.

Joshua D. Drake

--
Command Prompt, Inc. - http://www.commandprompt.com/
PostgreSQL Support, Training, Professional Services and Development
The PostgreSQL Conference - http://www.postgresqlconference.org/
@cmdpromptinc - @postgresconf - 509-416-6579


From: Rodrigo Gonzalez <rjgonzale(at)estrads(dot)com(dot)ar>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Michael Nolan <htfoot(at)gmail(dot)com>, "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: What Would You Like To Do?
Date: 2011-09-13 20:02:29
Message-ID: 4E6FB6D5.1080007@estrads.com.ar
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On 09/13/2011 04:52 PM, Tom Lane wrote:
> Rodrigo Gonzalez<rjgonzale(at)estrads(dot)com(dot)ar> writes:
>>> In a perfect world, it would be nice if one could do combined queries
>>> linking a PostgreSQL database with an Oracle one, or a MySQL one,
>> Can't you do that with FDW that is present in 9.1?
> FDW provides the structure within which that will eventually be
> possible, but there's no Oracle or MySQL wrapper today ... and there are
> a lot of FDW restrictions that need to be worked on, too.
>
> regards, tom lane
>
They are both listed at wiki
I know there are a lot of limitations....but OP message says "Even
something that is several hundred times slower is going to be faster
than merging the databases together. When I do this today, I have to
write a program (in perl or php) that accesses both databases and merges
it by hand."
Am I wrong that this is currently possible using FDW?

Thanks

Rodrigo Gonzalez


From: Michael Nolan <htfoot(at)gmail(dot)com>
To: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: What Would You Like To Do?
Date: 2011-09-13 21:02:24
Message-ID: CAOzAquJJdDYKA65VX_P+sZo1DKC5ohPDKwcrsotH6zqycxQSgw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Tue, Sep 13, 2011 at 2:55 PM, Joshua D. Drake <jd(at)commandprompt(dot)com>wrote:

>
> On 09/13/2011 11:51 AM, Michael Nolan wrote:
>
>
>> The ability to restore a table from a backup file to a different
>> table
>> name in the same database and schema.
>>
>>
>> This can be done but agreed it is not intuitive.
>>
>>
>> Can you elaborate on tha a bit, please? The only way I've been able to
>> do it is to edit the dump file to change the table name. That's not
>> very practical with a several gigabyte dump file, even less so with one
>> that is much larger. If this capability already exists, is it documented?
>>
>
> You use the -Fc method, extract the TOC and edit just the TOC (so you don't
> have to edit a multi-gig file)
>
> That is, at best, a bit obscure. I've wondered at times if the -f tar
option would have any benefits here, though it appears to have significant
downsides.

A downside of either method may be that I can't predict in advance when I
will want to do a restore of a single table from a backup file,
so I'd have to always use that method of generating the file.

I did propose an extension to pg_restore a couple of months ago to add an
option to re-name a table as it is restored, but that seemed to have
generated no interest.

Maybe an external tool that reads a pg_dump file looking for a specific
table and writes that portion of the dump file to a separate file, changing
the table name would be easier? It'd probably have to handle most of or all
of the different pg_dump formats, but that doesn't sound like an
unachievable goal.
--
Mike Nolan


From: Alexander Korotkov <aekorotkov(at)gmail(dot)com>
To: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
Cc: PostgreSQL-development Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: What Would You Like To Do?
Date: 2011-09-13 21:31:32
Message-ID: CAPpHfdv3B4K9wPwBAZfL-mEkc5EGtdfNjtMe1sxOr9UM0YK5Vg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Mon, Sep 12, 2011 at 8:21 AM, David E. Wheeler <david(at)kineticode(dot)com>wrote:

> So, what do you want to work on? Let me know, I'll do as much match-making
> at the conference as I can.
>
Here is my list:
* Additional approximate string matching functions and index access for them
using gin/gist/spgist.
* Signature indexing with gist/spgist in various fields. For example,
indexing of image signatures with similar images retreival.
* Statistics collection and selectivity estimation for geometric datatypes.

------
With best regards,
Alexander Korotkov.


From: Dann Corbit <DCorbit(at)connx(dot)com>
To: 'Michael Nolan' <htfoot(at)gmail(dot)com>, "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: What Would You Like To Do?
Date: 2011-09-13 22:00:00
Message-ID: 87F42982BF2B434F831FCEF4C45FC33E424F3A3A@EXCHANGE.corporate.connx.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

From: pgsql-hackers-owner(at)postgresql(dot)org [mailto:pgsql-hackers-owner(at)postgresql(dot)org] On Behalf Of Michael Nolan
Sent: Tuesday, September 13, 2011 11:51 AM
To: Joshua D. Drake
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] What Would You Like To Do?

On Tue, Sep 13, 2011 at 12:26 PM, Joshua D. Drake <jd(at)commandprompt(dot)com<mailto:jd(at)commandprompt(dot)com>> wrote:

On 09/13/2011 10:13 AM, Michael Nolan wrote:
The lists all seem to be focusing on the things that the developers
would like to add to PostgreSQL, what about some things that users or
ISPs might like to have, and thus perhaps something that companies might
actually see as worth funding?

Well just my own two cents ... but it all depends on who is doing the funding. At this point 80% of the work CMD codes for Pg (or tertiary projects and modules) is funded by companies. So let's not assume that companies aren't funding things. They are.

But perhaps if a few 'commercial' features were on the wish list there would be more companies willing to fund development? The developers get a bit of what they want to work on, the production users get a bit of what they need, everybody's happy.

For example:

A fully integrated ability to query across multiple databases,possibly
on multiple servers, something Oracle has had for nearly two decades.

That isn't the approach to take. The fact that Oracle has it is not a guarantee that it is useful or good. If you need to query across databases (assuming within the same cluster) then you designed your database wrong and should have used our SCHEMA support (what Oracle calls Namespaces) instead.

This is the difference between developers and real world users. Real world users may not have the ability, time or resources to redesign their databases just because that's the 'best' way to do something. Will it be the most efficient way to do it? Almost certainly not.

I've been involved in a few corporate mergers, and there was a short term need to do queries on the combined databases while the tiger team handling the IT restructuring figured out how (or whether) to merge the dabases together. (One of these happened to be an Oracle/Oracle situation, it was a piece of cake even though the two data centers were 750 miles apart and the table structures had almost nothing in common. Another was a two week headache, the third was even worse!)

In a perfect world, it would be nice if one could do combined queries linking a PostgreSQL database with an Oracle one, or a MySQL one, too. Because sometimes, that's what you gotta do. Even something that is several hundred times slower is going to be faster than merging the databases together. When I do this today, I have to write a program (in perl or php) that accesses both databases and merges it by hand.
>>
Microsoft uses Linked servers.
DB/2 uses DB/2 Connect
Informix uses Informix Connect
Etc.

At CONNX, our product suite provides this ability generically from any data source collection. It is obvious why such a thing is utterly mandatory for every large business. For example:
The business purchases a CRM system for customer relationship management like SAP.
The business purchases a HCM system for Human Capital Management like Peoplesoft.
The business purchases a Manufacturing system like MAXIM for their manufacturing systems.
Etc., etc., etc.

Some of these systems may have the same database type, but it is highly unlikely that every solution to a business problem in the entire organization uses the same underlying database.
People buy or build software systems to solve their business problems. There is a low probability that each and every business problem was solved by the same sets of tools from the same vendors.
Therefore, the ability to process queries across heterogeneous systems is a fundamental business need.

The larger the company the more database systems you will find. But even teeny-tiny organizations tend to have several different database systems needed to run their business.
<<
{snip}


From: David E(dot) Wheeler <david(at)kineticode(dot)com>
To: Dimitri Fontaine <dimitri(at)2ndquadrant(dot)fr>
Cc: PostgreSQL-development Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: What Would You Like To Do?
Date: 2011-09-14 05:25:05
Message-ID: B8CB6501-6F99-4833-B257-2DA266EA7302@kineticode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Sep 12, 2011, at 9:50 AM, Dimitri Fontaine wrote:

>> Thanks to Greg Smith for adding a few bonus ideas I hadn't thought of. What
>> else have you got? I don't think we necessarily have to limit ourselves to
>> core features, BTW: projects like PostGIS and pgAdmin are also clearly
>> popular, and new projects of that scope (or improvements to those!) would no
>> doubt be welcome.
>
> You could add DDL Triggers from me (2ndQuadrant) and process-based
> parallel loading in pgloader (currently thread based, sucks).

Got it, thanks. What about additional extension features? Got a road map for that?

Best,

David


From: Kaare Rasmussen <kaare(at)jasonic(dot)dk>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: What Would You Like To Do?
Date: 2011-09-14 10:49:24
Message-ID: 4E7086B4.90200@jasonic.dk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Hi

> [brief]: http://postgresopen.org/2011/schedule/presentations/83/
You list Job scheduling as one item here,
<snip>
but not here
> Here's my preliminary list:
Could you expand your idea about this here?


From: Hannu Krosing <hannu(at)2ndQuadrant(dot)com>
To: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: What Would You Like To Do?
Date: 2011-09-14 12:12:33
Message-ID: 1316002353.9523.2.camel@hvost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Tue, 2011-09-13 at 10:26 -0700, Joshua D. Drake wrote:

> > Complete isolation at the user level, allowing an ISP to support
> > multiple independent customers on a server without having to fiddle with
> > multiple back ends each running on a separate port, a feature that MySQL
> > has had for as far back as I can recall, and one of the reasons ISPs are
> > more likely to offer MySQL than PostgreSQL.
>
> Now this would definitely be nice. It is frustrating that we don't have
> per database users.

Hmm, what does the GUC db_user_namespace do then ?

it says "Enables per-database user names."

--
-------
Hannu Krosing
PostgreSQL Unlimited Scalability and Performance Consultant
2ndQuadrant Nordic
PG Admin Book: http://www.2ndQuadrant.com/books/


From: Hannu Krosing <hannu(at)krosing(dot)net>
To: Rodrigo Gonzalez <rjgonzale(at)estrads(dot)com(dot)ar>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Michael Nolan <htfoot(at)gmail(dot)com>, "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: What Would You Like To Do?
Date: 2011-09-14 12:40:09
Message-ID: 1316004009.9523.4.camel@hvost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Tue, 2011-09-13 at 17:02 -0300, Rodrigo Gonzalez wrote:
> On 09/13/2011 04:52 PM, Tom Lane wrote:
> > Rodrigo Gonzalez<rjgonzale(at)estrads(dot)com(dot)ar> writes:
> >>> In a perfect world, it would be nice if one could do combined queries
> >>> linking a PostgreSQL database with an Oracle one, or a MySQL one,
> >> Can't you do that with FDW that is present in 9.1?
> > FDW provides the structure within which that will eventually be
> > possible, but there's no Oracle or MySQL wrapper today ... and there are
> > a lot of FDW restrictions that need to be worked on, too.
> >
> > regards, tom lane
> >
> They are both listed at wiki
> I know there are a lot of limitations....but OP message says "Even
> something that is several hundred times slower is going to be faster
> than merging the databases together. When I do this today, I have to
> write a program (in perl or php) that accesses both databases and merges
> it by hand."
> Am I wrong that this is currently possible using FDW?

Yes, to some extent.

And before FDW it was also possible (to some extent) using pl/python or
pl/perl to turn remote tables into set returning functions (and if
really needed then you could put a view over this function and almost
get "a remote view")

> Thanks
>
> Rodrigo Gonzalez
>
>


From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Hannu Krosing <hannu(at)2ndQuadrant(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: What Would You Like To Do?
Date: 2011-09-14 14:14:10
Message-ID: 4E70B6B2.10209@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


On 09/14/2011 05:12 AM, Hannu Krosing wrote:
>
> On Tue, 2011-09-13 at 10:26 -0700, Joshua D. Drake wrote:
>
>>> Complete isolation at the user level, allowing an ISP to support
>>> multiple independent customers on a server without having to fiddle with
>>> multiple back ends each running on a separate port, a feature that MySQL
>>> has had for as far back as I can recall, and one of the reasons ISPs are
>>> more likely to offer MySQL than PostgreSQL.
>>
>> Now this would definitely be nice. It is frustrating that we don't have
>> per database users.
>
> Hmm, what does the GUC db_user_namespace do then ?
>
> it says "Enables per-database user names."

Last I checked (it has been a few years) that was at best, a hack. I
remember either I or David Fetter? Writing about some issues with it on
list but it was a long time ago.

JD

--
Command Prompt, Inc. - http://www.commandprompt.com/
PostgreSQL Support, Training, Professional Services and Development
The PostgreSQL Conference - http://www.postgresqlconference.org/
@cmdpromptinc - @postgresconf - 509-416-6579


From: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
To: Kaare Rasmussen <kaare(at)jasonic(dot)dk>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: What Would You Like To Do?
Date: 2011-09-14 15:27:50
Message-ID: 45000A36-7E15-49E9-A654-0CFEE18B5EF9@kineticode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Sep 14, 2011, at 5:49 AM, Kaare Rasmussen wrote:

>> [brief]: http://postgresopen.org/2011/schedule/presentations/83/
> You list Job scheduling as one item here,
> <snip>
> but not here
>> Here's my preliminary list:
> Could you expand your idea about this here?

It was something suggested to me on IRC a few months ago, but I don't know who would do it. Also, I think that pgAgent might actually offer the functionality.

http://www.pgadmin.org/docs/1.4/pgagent.html

Best,

David


From: Hannu Krosing <hannu(at)krosing(dot)net>
To: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: What Would You Like To Do?
Date: 2011-09-14 15:54:45
Message-ID: 1316015685.9523.7.camel@hvost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, 2011-09-14 at 07:14 -0700, Joshua D. Drake wrote:
> On 09/14/2011 05:12 AM, Hannu Krosing wrote:
> >
> > On Tue, 2011-09-13 at 10:26 -0700, Joshua D. Drake wrote:
> >
> >>> Complete isolation at the user level, allowing an ISP to support
> >>> multiple independent customers on a server without having to fiddle with
> >>> multiple back ends each running on a separate port, a feature that MySQL
> >>> has had for as far back as I can recall, and one of the reasons ISPs are
> >>> more likely to offer MySQL than PostgreSQL.
> >>
> >> Now this would definitely be nice. It is frustrating that we don't have
> >> per database users.
> >
> > Hmm, what does the GUC db_user_namespace do then ?
> >
> > it says "Enables per-database user names."
>
> Last I checked (it has been a few years) that was at best, a hack. I
> remember either I or David Fetter? Writing about some issues with it on
> list but it was a long time ago.

I have never used it myself, so I can't comment on it.

OTOH it may be that it actually works if said ISP uses it carefully :)

> --
> Command Prompt, Inc. - http://www.commandprompt.com/
> PostgreSQL Support, Training, Professional Services and Development
> The PostgreSQL Conference - http://www.postgresqlconference.org/
> @cmdpromptinc - @postgresconf - 509-416-6579
>


From: Jaime Casanova <jaime(at)2ndquadrant(dot)com>
To: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
Cc: Hannu Krosing <hannu(at)2ndquadrant(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: What Would You Like To Do?
Date: 2011-09-14 16:09:26
Message-ID: CAJKUy5iPTnWxwWcc_=W56HhTm4mxWxv48NF8MS_BP0s6XTdKVw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, Sep 14, 2011 at 9:14 AM, Joshua D. Drake <jd(at)commandprompt(dot)com> wrote:
>
> On 09/14/2011 05:12 AM, Hannu Krosing wrote:
>>
>> On Tue, 2011-09-13 at 10:26 -0700, Joshua D. Drake wrote:
>>
>>>> Complete isolation at the user level, allowing an ISP to support
>>>> multiple independent customers on a server without having to fiddle with
>>>> multiple back ends each running on a separate port, a feature that MySQL
>>>> has had for as far back as I can recall, and one of the reasons ISPs are
>>>> more likely to offer MySQL than PostgreSQL.
>>>
>>> Now this would definitely be nice. It is frustrating that we don't have
>>> per database users.
>>
>> Hmm, what does the GUC db_user_namespace  do then ?
>>
>> it says "Enables per-database user names."
>
> Last I checked (it has been a few years) that was at best, a hack. I
> remember either I or David Fetter? Writing about some issues with it on list
> but it was a long time ago.
>

last time i tried it (last year), it seems broken because i couldn't
log in with any user anymore... but it could be that i did something
wrong so i didn't report until i could confirm but i hadn't the time
and i forgot it since then

--
Jaime Casanova         www.2ndQuadrant.com
Professional PostgreSQL: Soporte 24x7 y capacitación


From: Aidan Van Dyk <aidan(at)highrise(dot)ca>
To: Jaime Casanova <jaime(at)2ndquadrant(dot)com>
Cc: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>, Hannu Krosing <hannu(at)2ndquadrant(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: What Would You Like To Do?
Date: 2011-09-14 16:49:01
Message-ID: CAC_2qU_XzJZTcTUEiWBa3Fusr2+nAVeYXaN5NkLKnV7NVSYPUA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, Sep 14, 2011 at 12:09 PM, Jaime Casanova <jaime(at)2ndquadrant(dot)com> wrote:

> last time i tried it (last year), it seems broken because i couldn't
> log in with any user anymore... but it could be that i did something
> wrong so i didn't report until i could confirm but i hadn't the time
> and i forgot it since then

I haven't tried it on 9.0/9.1, but I used it on a 8.4 cluster, and "it
worked", with all the caveats of needing all the user(at)database users
created correctly, and the right use of quoting, and @ in logins,
etc.... The biggest being the lack of md5...

Definitely not "straight forward", and users are still "global", just
suffixed with an "@database" to make then "unique" between database
namespaces.

But I found it useful when needing to hand out "seperate" usernames
for different apps because they all needed to have their own
search_path and other settings set before login (yes, dumb apps,
mostly odbc), and be able to have the same "userid" for different
databases, using different settings...

a.

--
Aidan Van Dyk                                             Create like a god,
aidan(at)highrise(dot)ca                                       command like a king,
http://www.highrise.ca/                                   work like a slave.


From: Jaime Casanova <jaime(at)2ndquadrant(dot)com>
To: Aidan Van Dyk <aidan(at)highrise(dot)ca>
Cc: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>, Hannu Krosing <hannu(at)2ndquadrant(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: What Would You Like To Do?
Date: 2011-09-14 17:01:57
Message-ID: CAJKUy5ieBjjUg6jLuhKNt6hAzMKwPnnTK5Pm7pfXACu+utV5+Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, Sep 14, 2011 at 11:49 AM, Aidan Van Dyk <aidan(at)highrise(dot)ca> wrote:
>
> But I found it useful when needing to hand out "seperate" usernames
> for different apps because they all needed to have their own
> search_path and other settings set before login (yes, dumb apps,
> mostly odbc), and be able to have the same "userid" for different
> databases, using different settings...
>

why "before" login? in 9.0+ you can use ALTER ROLE ... IN DATABASE,
doesn't it help?

pre 9.0 need the db_user_namespace GUC for that, though

--
Jaime Casanova         www.2ndQuadrant.com
Professional PostgreSQL: Soporte 24x7 y capacitación


From: Josh Berkus <josh(at)agliodbs(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: What Would You Like To Do?
Date: 2011-09-14 20:15:21
Message-ID: 4E710B59.70103@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

DW, All:

- Update newsysviews and bundle it as an extension, and maintain it for
each new version
- Add median() and quartile() windowing aggregates, or similar equivalents.
- work on pgTune

--
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com


From: Kaare Rasmussen <kaare(at)jasonic(dot)dk>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: What Would You Like To Do?
Date: 2011-09-15 07:20:29
Message-ID: 4E71A73D.5010807@jasonic.dk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On 2011-09-14 17:27, David E. Wheeler wrote:
> On Sep 14, 2011, at 5:49 AM, Kaare Rasmussen wrote:
>
>>> [brief]: http://postgresopen.org/2011/schedule/presentations/83/
>> You list Job scheduling as one item here,
>> <snip>
>> but not here
>>> Here's my preliminary list:
>> Could you expand your idea about this here?
> It was something suggested to me on IRC a few months ago, but I don't know who would do it. Also, I think that pgAgent might actually offer the functionality.
>
> http://www.pgadmin.org/docs/1.4/pgagent.html
I would vote for inclusion of such a feature in PostgreSQL.


From: Bruce Momjian <bruce(at)momjian(dot)us>
To: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
Cc: Michael Nolan <htfoot(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: What Would You Like To Do?
Date: 2011-09-24 13:51:38
Message-ID: 201109241351.p8ODpcU18153@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Joshua D. Drake wrote:
>
> On 09/13/2011 11:51 AM, Michael Nolan wrote:
>
> >
> > The ability to restore a table from a backup file to a different
> > table
> > name in the same database and schema.
> >
> >
> > This can be done but agreed it is not intuitive.
> >
> >
> > Can you elaborate on tha a bit, please? The only way I've been able to
> > do it is to edit the dump file to change the table name. That's not
> > very practical with a several gigabyte dump file, even less so with one
> > that is much larger. If this capability already exists, is it documented?
>
> You use the -Fc method, extract the TOC and edit just the TOC (so you
> don't have to edit a multi-gig file)

How does that work in practice? You dump the TOC, edit it, restore the
TOC schema definition, then how do you restore the data to the renamed
table?

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +


From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>, Michael Nolan <htfoot(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: What Would You Like To Do?
Date: 2011-09-24 14:14:00
Message-ID: 4E7DE5A8.9080007@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On 09/24/2011 09:51 AM, Bruce Momjian wrote:
> Joshua D. Drake wrote:
>> On 09/13/2011 11:51 AM, Michael Nolan wrote:
>>
>>> The ability to restore a table from a backup file to a different
>>> table
>>> name in the same database and schema.
>>>
>>>
>>> This can be done but agreed it is not intuitive.
>>>
>>>
>>> Can you elaborate on tha a bit, please? The only way I've been able to
>>> do it is to edit the dump file to change the table name. That's not
>>> very practical with a several gigabyte dump file, even less so with one
>>> that is much larger. If this capability already exists, is it documented?
>> You use the -Fc method, extract the TOC and edit just the TOC (so you
>> don't have to edit a multi-gig file)
> How does that work in practice? You dump the TOC, edit it, restore the
> TOC schema definition, then how do you restore the data to the renamed
> table?
>

How do you extract the TOC at all? There are no tools for manipulating
the TOC that I know of, and I'm not sure we should provide any. It's not
documented, it's a purely internal artefact. The closest thing we have
to being able to manipulate it is --list/--use-list, and those are
useless for this purpose. So this method description does not compute
for me either.

+1 for providing a way to restore an object to a different object name.

cheers

andrew