Closing some 8.4 open items

Started by Tom Laneabout 17 years ago92 messageshackers
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

If there are no objections, I'm going to remove the following items
from the list at
http://wiki.postgresql.org/wiki/PostgreSQL_8.4_Open_Items

finishing posix_fadvise patch

Push to TODO

change cardinality() for multi-dim arrays?

Drop; there's no consensus that this should be changed

Change the empty-input case for string_to_array?

Drop; there's no consensus that this should be changed

change psql's \df output for window functions?

Drop; there's no consensus that this should be changed

Polymorphic types vs. domains

Push to TODO

regards, tom lane

#2Andrew Dunstan
andrew@dunslane.net
In reply to: Tom Lane (#1)
Re: Closing some 8.4 open items

Tom Lane wrote:

If there are no objections, I'm going to remove the following items
from the list at
http://wiki.postgresql.org/wiki/PostgreSQL_8.4_Open_Items

change cardinality() for multi-dim arrays?

Drop; there's no consensus that this should be changed

I don't think we should let this go quite so easily, as this is a new
function, so the bias should be to "getting it right" rather than "don't
change it".

The supplied functionality is not only surprising, but easily obtained
by an existing function. ISTM if we're supplying a new function it
should have new functionality.

cheers

andrew

#3Robert Haas
robertmhaas@gmail.com
In reply to: Andrew Dunstan (#2)
Re: Closing some 8.4 open items

On Sun, Apr 5, 2009 at 7:45 AM, Andrew Dunstan <andrew@dunslane.net> wrote:

Tom Lane wrote:

If there are no objections, I'm going to remove the following items
from the list at
http://wiki.postgresql.org/wiki/PostgreSQL_8.4_Open_Items

change cardinality() for multi-dim arrays?

       Drop; there's no consensus that this should be changed

I don't think we should let this go quite so easily, as this  is a new
function, so the bias should be to "getting it right" rather than "don't
change it".

I think it is right already, but the point is debatable.

The supplied functionality is not only surprising, but easily obtained by an
existing function. ISTM if we're supplying a new function it should have new
functionality.

Well, it's a compatibility function...

...Robert

#4Andrew Dunstan
andrew@dunslane.net
In reply to: Robert Haas (#3)
Re: Closing some 8.4 open items

Robert Haas wrote:

On Sun, Apr 5, 2009 at 7:45 AM, Andrew Dunstan <andrew@dunslane.net> wrote:

Tom Lane wrote:

If there are no objections, I'm going to remove the following items
from the list at
http://wiki.postgresql.org/wiki/PostgreSQL_8.4_Open_Items

change cardinality() for multi-dim arrays?

Drop; there's no consensus that this should be changed

I don't think we should let this go quite so easily, as this is a new
function, so the bias should be to "getting it right" rather than "don't
change it".

I think it is right already, but the point is debatable.

The supplied functionality is not only surprising, but easily obtained by an
existing function. ISTM if we're supplying a new function it should have new
functionality.

Well, it's a compatibility function...

compatible with what?

The other thing that frankly bothers me is that we appear to have
acquired this function by a curious process which involved no proposal
or discussion that I have discovered. If there had been proper and
adequate discussion before the item was committed I wouldn't be making a
fuss now, whether or not I agreed with the result.

cheers

andrew

#5David Fetter
david@fetter.org
In reply to: Robert Haas (#3)
Re: Closing some 8.4 open items

On Sun, Apr 05, 2009 at 07:55:44AM -0400, Robert Haas wrote:

On Sun, Apr 5, 2009 at 7:45 AM, Andrew Dunstan <andrew@dunslane.net> wrote:

Tom Lane wrote:

If there are no objections, I'm going to remove the following items
from the list at
http://wiki.postgresql.org/wiki/PostgreSQL_8.4_Open_Items

change cardinality() for multi-dim arrays?

� � � �Drop; there's no consensus that this should be changed

I don't think we should let this go quite so easily, as this �is a
new function, so the bias should be to "getting it right" rather
than "don't change it".

I think it is right already, but the point is debatable.

The supplied functionality is not only surprising, but easily
obtained by an existing function. ISTM if we're supplying a new
function it should have new functionality.

Well, it's a compatibility function...

It's actually in SQL:2008.

Cheers,
David.
--
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david.fetter@gmail.com

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate

#6Tom Lane
tgl@sss.pgh.pa.us
In reply to: Andrew Dunstan (#4)
Re: Closing some 8.4 open items

Andrew Dunstan <andrew@dunslane.net> writes:

Robert Haas wrote:

Well, it's a compatibility function...

compatible with what?

It's required by the SQL standard.

The other thing that frankly bothers me is that we appear to have
acquired this function by a curious process which involved no proposal
or discussion that I have discovered. If there had been proper and
adequate discussion before the item was committed I wouldn't be making a
fuss now, whether or not I agreed with the result.

I think Peter put it in under the assumption that meeting spec-required
syntax would always pass muster. It is however fair to question whether
he made the right extrapolation of the spec's definition to cases that
are not in the spec.

Personally I am in favor of changing it to give the total number of
array elements, on the grounds that (1) that's as defensible a reading
of the spec as the other and (2) it would add actual new functionality
rather than being only a relabeling of array_length.

I will leave that item on the Open Items list. I take it no one's
excited about the others?

regards, tom lane

#7Robert Haas
robertmhaas@gmail.com
In reply to: Tom Lane (#6)
Re: Closing some 8.4 open items

On Sun, Apr 5, 2009 at 12:21 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:

Andrew Dunstan <andrew@dunslane.net> writes:

Robert Haas wrote:

Well, it's a compatibility function...

compatible with what?

It's required by the SQL standard.

The other thing that frankly bothers me is that we appear to have
acquired this function by a curious process which involved no proposal
or discussion that I have discovered. If there had been proper and
adequate discussion before the item was committed I wouldn't be making a
fuss now, whether or not I agreed with the result.

I think Peter put it in under the assumption that meeting spec-required
syntax would always pass muster.  It is however fair to question whether
he made the right extrapolation of the spec's definition to cases that
are not in the spec.

Personally I am in favor of changing it to give the total number of
array elements, on the grounds that (1) that's as defensible a reading
of the spec as the other and (2) it would add actual new functionality
rather than being only a relabeling of array_length.

I will leave that item on the Open Items list.  I take it no one's
excited about the others?

I'm excited about some of them, but not to the point of not wanting to
ship beta. So +1 for removing them as per your suggestions.

...Robert

#8David Fetter
david@fetter.org
In reply to: Tom Lane (#6)
Re: Closing some 8.4 open items

On Sun, Apr 05, 2009 at 12:21:41PM -0400, Tom Lane wrote:

I will leave that item on the Open Items list. I take it no one's
excited about the others?

When the windowing functions become a pain point, let's revisit :)

Cheers,
David.
--
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david.fetter@gmail.com

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate

#9Tom Lane
tgl@sss.pgh.pa.us
In reply to: David Fetter (#8)
Re: Closing some 8.4 open items

David Fetter <david@fetter.org> writes:

On Sun, Apr 05, 2009 at 12:21:41PM -0400, Tom Lane wrote:

I will leave that item on the Open Items list. I take it no one's
excited about the others?

When the windowing functions become a pain point, let's revisit :)

The \df thing? That's something it'd be okay to revisit during beta,
IMHO. The things I'd really like to get right before beta are the ones
that are going to require an initdb to change. Like, say, the
cardinality() issue ...

regards, tom lane

#10Bruce Momjian
bruce@momjian.us
In reply to: Robert Haas (#7)
Re: Closing some 8.4 open items

On Sun, Apr 5, 2009 at 6:54 PM, Robert Haas <robertmhaas@gmail.com> wrote:

I'm excited about some of them, but not to the point of not wanting to
ship beta.  So +1 for removing them as per your suggestions.

I'm somewhat excited about posix_fadvise but my general feeling was
that it was best to do nothing anyways. I don't know how to test these
questions though because they depend a lot on workload and pgbench or
synthetic queries which stress prefetching aren't especially good at
measuring how fast pages get evicted.

As far as reimplementing regular index scans -- I don't currently see
any way to do it in a way that would satisfy your demands that
wouldn't be insanely complex. Hopefully I'm missing something obvious
and if someone sees what I would be happy to go ahead and implement
something. But everything I've tried has turned into a monster.

--
greg

#11Tom Lane
tgl@sss.pgh.pa.us
In reply to: Bruce Momjian (#10)
Re: Closing some 8.4 open items

Greg Stark <stark@enterprisedb.com> writes:

On Sun, Apr 5, 2009 at 6:54 PM, Robert Haas <robertmhaas@gmail.com> wrote:

I'm excited about some of them, but not to the point of not wanting to
ship beta. �So +1 for removing them as per your suggestions.

I'm somewhat excited about posix_fadvise but my general feeling was
that it was best to do nothing anyways.

Yeah. One of the things in the back of my mind is that the planner is
going to prefer bitmap scans anyway for anything that fetches more than
a very few rows. So it's not clear that prefetching plain indexscans
is going to buy enough to justify a whole lotta work or ugliness there.

I'm content to throw this one on TODO.

regards, tom lane

#12David Fetter
david@fetter.org
In reply to: Tom Lane (#9)
Re: Closing some 8.4 open items

On Sun, Apr 05, 2009 at 02:07:32PM -0400, Tom Lane wrote:

David Fetter <david@fetter.org> writes:

On Sun, Apr 05, 2009 at 12:21:41PM -0400, Tom Lane wrote:

I will leave that item on the Open Items list. I take it no one's
excited about the others?

When the windowing functions become a pain point, let's revisit :)

The \df thing? That's something it'd be okay to revisit during beta,
IMHO.

OK, I'll work on this tomorrow :)

Cheers,
David.

The things I'd really like to get right before beta are the ones
that are going to require an initdb to change. Like, say, the
cardinality() issue ...

regards, tom lane

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

--
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david.fetter@gmail.com

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate

#13Tom Lane
tgl@sss.pgh.pa.us
In reply to: David Fetter (#12)
Re: Closing some 8.4 open items

David Fetter <david@fetter.org> writes:

On Sun, Apr 05, 2009 at 02:07:32PM -0400, Tom Lane wrote:

The \df thing? That's something it'd be okay to revisit during beta,
IMHO.

OK, I'll work on this tomorrow :)

I think what we were lacking was consensus on what it should do,
not code ...

regards, tom lane

#14David Fetter
david@fetter.org
In reply to: Tom Lane (#13)
Re: Closing some 8.4 open items

On Sun, Apr 05, 2009 at 08:55:07PM -0400, Tom Lane wrote:

David Fetter <david@fetter.org> writes:

On Sun, Apr 05, 2009 at 02:07:32PM -0400, Tom Lane wrote:

The \df thing? That's something it'd be okay to revisit during
beta, IMHO.

OK, I'll work on this tomorrow :)

I think what we were lacking was consensus on what it should do, not
code ...

I was thinking I'd knock out a proposal or two.

Cheers,
David.
--
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david.fetter@gmail.com

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate

#15David Fetter
david@fetter.org
In reply to: David Fetter (#14)
Re: Closing some 8.4 open items

On Sun, Apr 05, 2009 at 05:57:46PM -0700, David Fetter wrote:

On Sun, Apr 05, 2009 at 08:55:07PM -0400, Tom Lane wrote:

David Fetter <david@fetter.org> writes:

On Sun, Apr 05, 2009 at 02:07:32PM -0400, Tom Lane wrote:

The \df thing? That's something it'd be okay to revisit during
beta, IMHO.

OK, I'll work on this tomorrow :)

I think what we were lacking was consensus on what it should do, not
code ...

I was thinking I'd knock out a proposal or two.

Please find enclosed one way to handle it, this being prepending
WINDOW to the result types in \df.

Another way, patch coming tomorrow, would be to add a \dw and remove
the functions where pg_proc.iswindowing is true from \df.

Cheers,
David.
--
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david.fetter@gmail.com

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate

Attachments:

window_prefix_result_data_type.difftext/plain; charset=us-asciiDownload+1-0
#16Bruce Momjian
bruce@momjian.us
In reply to: Tom Lane (#11)
Re: Closing some 8.4 open items

Tom Lane wrote:

Greg Stark <stark@enterprisedb.com> writes:

On Sun, Apr 5, 2009 at 6:54 PM, Robert Haas <robertmhaas@gmail.com> wrote:

I'm excited about some of them, but not to the point of not wanting to
ship beta. ���So +1 for removing them as per your suggestions.

I'm somewhat excited about posix_fadvise but my general feeling was
that it was best to do nothing anyways.

Yeah. One of the things in the back of my mind is that the planner is
going to prefer bitmap scans anyway for anything that fetches more than
a very few rows. So it's not clear that prefetching plain indexscans
is going to buy enough to justify a whole lotta work or ugliness there.

I'm content to throw this one on TODO.

I am not inclined to add a TODO until we see actual value in doing it.

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

#17David Fetter
david@fetter.org
In reply to: David Fetter (#15)
Re: Closing some 8.4 open items

On Mon, Apr 06, 2009 at 10:51:22PM -0700, David Fetter wrote:

On Sun, Apr 05, 2009 at 05:57:46PM -0700, David Fetter wrote:

On Sun, Apr 05, 2009 at 08:55:07PM -0400, Tom Lane wrote:

David Fetter <david@fetter.org> writes:

On Sun, Apr 05, 2009 at 02:07:32PM -0400, Tom Lane wrote:

The \df thing? That's something it'd be okay to revisit during
beta, IMHO.

OK, I'll work on this tomorrow :)

I think what we were lacking was consensus on what it should do, not
code ...

I was thinking I'd knock out a proposal or two.

Please find enclosed one way to handle it, this being prepending
WINDOW to the result types in \df.

Another way, patch coming tomorrow, would be to add a \dw and remove
the functions where pg_proc.iswindowing is true from \df.

Here's another way, adding \dw.

Cheers,
David.
--
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david.fetter@gmail.com

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate

Attachments:

dw.patchtext/plain; charset=us-asciiDownload+82-1
#18Josh Berkus
josh@agliodbs.com
In reply to: Tom Lane (#1)
Re: Closing some 8.4 open items

Tom,

finishing posix_fadvise patch

Push to TODO

So has fadvise been completely dropped from 8.4, or only partially?

change psql's \df output for window functions?

Drop; there's no consensus that this should be changed

Also, Fetter is currently working on a \dw for 8.5.

Polymorphic types vs. domains

Push to TODO

Agreed.

--
Josh Berkus
PostgreSQL Experts Inc.
www.pgexperts.com

#19Robert Haas
robertmhaas@gmail.com
In reply to: Josh Berkus (#18)
Re: Closing some 8.4 open items

On Tue, Apr 7, 2009 at 10:42 PM, Josh Berkus <josh@agliodbs.com> wrote:

Tom,

finishing posix_fadvise patch

       Push to TODO

So has fadvise been completely dropped from 8.4, or only partially?

Bitmap scans will support it, but index scans will not.

...Robert

#20Tom Lane
tgl@sss.pgh.pa.us
In reply to: Robert Haas (#19)
Re: Closing some 8.4 open items

Robert Haas <robertmhaas@gmail.com> writes:

On Tue, Apr 7, 2009 at 10:42 PM, Josh Berkus <josh@agliodbs.com> wrote:

So has fadvise been completely dropped from 8.4, or only partially?

Bitmap scans will support it, but index scans will not.

And please note that we think bitmap scans are the larger part of
the win anyway. What's left undone there is some marginal mopup.

regards, tom lane

#21David Fetter
david@fetter.org
In reply to: Josh Berkus (#18)
#22Robert Haas
robertmhaas@gmail.com
In reply to: Tom Lane (#20)
#23Tom Lane
tgl@sss.pgh.pa.us
In reply to: Robert Haas (#22)
#24Robert Haas
robertmhaas@gmail.com
In reply to: Tom Lane (#23)
#25Tom Lane
tgl@sss.pgh.pa.us
In reply to: Robert Haas (#24)
#26Robert Haas
robertmhaas@gmail.com
In reply to: Tom Lane (#25)
#27Josh Berkus
josh@agliodbs.com
In reply to: Tom Lane (#20)
#28Tom Lane
tgl@sss.pgh.pa.us
In reply to: Josh Berkus (#27)
#29Josh Berkus
josh@agliodbs.com
In reply to: Tom Lane (#28)
#30Dave Page
dpage@pgadmin.org
In reply to: Josh Berkus (#29)
#31Heikki Linnakangas
heikki.linnakangas@enterprisedb.com
In reply to: Josh Berkus (#29)
#32Kevin Grittner
Kevin.Grittner@wicourts.gov
In reply to: Heikki Linnakangas (#31)
#33Heikki Linnakangas
heikki.linnakangas@enterprisedb.com
In reply to: Kevin Grittner (#32)
#34Heikki Linnakangas
heikki.linnakangas@enterprisedb.com
In reply to: Dave Page (#30)
#35Magnus Hagander
magnus@hagander.net
In reply to: Heikki Linnakangas (#34)
#36Josh Berkus
josh@agliodbs.com
In reply to: Heikki Linnakangas (#31)
#37Heikki Linnakangas
heikki.linnakangas@enterprisedb.com
In reply to: Josh Berkus (#36)
#38Tom Lane
tgl@sss.pgh.pa.us
In reply to: Magnus Hagander (#35)
#39Magnus Hagander
magnus@hagander.net
In reply to: Tom Lane (#38)
#40Dave Page
dpage@pgadmin.org
In reply to: Heikki Linnakangas (#34)
#41Josh Berkus
josh@agliodbs.com
In reply to: Tom Lane (#1)
#42Greg Smith
gsmith@gregsmith.com
In reply to: Heikki Linnakangas (#37)
#43Greg Smith
gsmith@gregsmith.com
In reply to: Tom Lane (#28)
#44Tom Lane
tgl@sss.pgh.pa.us
In reply to: Josh Berkus (#41)
#45Josh Berkus
josh@agliodbs.com
In reply to: Tom Lane (#44)
#46Peter Eisentraut
peter_e@gmx.net
In reply to: Tom Lane (#44)
#47Tom Lane
tgl@sss.pgh.pa.us
In reply to: Peter Eisentraut (#46)
#48Andrew Dunstan
andrew@dunslane.net
In reply to: Tom Lane (#47)
#49Tom Lane
tgl@sss.pgh.pa.us
In reply to: Andrew Dunstan (#48)
#50Bruce Momjian
bruce@momjian.us
In reply to: Tom Lane (#49)
#51Josh Berkus
josh@agliodbs.com
In reply to: Bruce Momjian (#50)
#52Jignesh K. Shah
J.K.Shah@Sun.COM
In reply to: Josh Berkus (#29)
#53David Fetter
david@fetter.org
In reply to: David Fetter (#17)
#54Tom Lane
tgl@sss.pgh.pa.us
In reply to: David Fetter (#53)
#55Bruce Momjian
bruce@momjian.us
In reply to: Tom Lane (#54)
#56Tom Lane
tgl@sss.pgh.pa.us
In reply to: Bruce Momjian (#55)
#57David Fetter
david@fetter.org
In reply to: Tom Lane (#54)
#58Tom Lane
tgl@sss.pgh.pa.us
In reply to: David Fetter (#57)
In reply to: Tom Lane (#56)
#60Andrew Gierth
andrew@tao11.riddles.org.uk
In reply to: Tom Lane (#58)
#61Hitoshi Harada
umi.tanuki@gmail.com
In reply to: Andrew Gierth (#60)
#62Hitoshi Harada
umi.tanuki@gmail.com
In reply to: Tom Lane (#56)
#63David Fetter
david@fetter.org
In reply to: Hitoshi Harada (#61)
#64Hitoshi Harada
umi.tanuki@gmail.com
In reply to: David Fetter (#63)
#65Grzegorz Jaskiewicz
gj@pointblue.com.pl
In reply to: Hitoshi Harada (#64)
#66Hitoshi Harada
umi.tanuki@gmail.com
In reply to: Grzegorz Jaskiewicz (#65)
#67Grzegorz Jaskiewicz
gj@pointblue.com.pl
In reply to: Hitoshi Harada (#66)
#68Robert Haas
robertmhaas@gmail.com
In reply to: Grzegorz Jaskiewicz (#65)
#69David Fetter
david@fetter.org
In reply to: Grzegorz Jaskiewicz (#67)
#70David Fetter
david@fetter.org
In reply to: Robert Haas (#68)
#71Hitoshi Harada
umi.tanuki@gmail.com
In reply to: Grzegorz Jaskiewicz (#67)
#72Tom Lane
tgl@sss.pgh.pa.us
In reply to: David Fetter (#70)
#73David Fetter
david@fetter.org
In reply to: Tom Lane (#72)
#74Tom Lane
tgl@sss.pgh.pa.us
In reply to: David Fetter (#73)
#75Sam Mason
sam@samason.me.uk
In reply to: Tom Lane (#74)
#76Tom Lane
tgl@sss.pgh.pa.us
In reply to: Sam Mason (#75)
#77Robert Haas
robertmhaas@gmail.com
In reply to: David Fetter (#70)
#78Josh Berkus
josh@agliodbs.com
In reply to: David Fetter (#73)
#79Tom Lane
tgl@sss.pgh.pa.us
In reply to: Josh Berkus (#78)
#80Josh Berkus
josh@agliodbs.com
In reply to: Tom Lane (#79)
#81Tom Lane
tgl@sss.pgh.pa.us
In reply to: Josh Berkus (#80)
#82David Fetter
david@fetter.org
In reply to: Tom Lane (#81)
#83Bruce Momjian
bruce@momjian.us
In reply to: David Fetter (#82)
#84Robert Haas
robertmhaas@gmail.com
In reply to: Josh Berkus (#78)
#85David Fetter
david@fetter.org
In reply to: Bruce Momjian (#83)
#86Tom Lane
tgl@sss.pgh.pa.us
In reply to: Bruce Momjian (#83)
#87David Fetter
david@fetter.org
In reply to: Tom Lane (#86)
#88David Fetter
david@fetter.org
In reply to: David Fetter (#87)
#89Josh Berkus
josh@agliodbs.com
In reply to: Robert Haas (#84)
#90Tom Lane
tgl@sss.pgh.pa.us
In reply to: David Fetter (#88)
#91David Fetter
david@fetter.org
In reply to: Tom Lane (#90)
#92Dimitri Fontaine
dimitri@2ndQuadrant.fr
In reply to: Tom Lane (#74)