FEATURE REQUEST: let arrays support null values.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ezra epstein

    FEATURE REQUEST: let arrays support null values.

    I've stumbled against the inability to put null values within an array. The
    PostgreSQL User's Guide on the subject states in part:

    <<A limitation of the present array implementation is that individual
    elements of an array cannot be SQL null values. The entire array can be set
    to null, but you can't have an array with some elements null and some not.>>
    8.15.&nbsp;Arrays # 8.15.1. Declaration of Array Types 8.15.2. Array Value Input 8.15.3. Accessing Arrays 8.15.4. Modifying Arrays 8.15.5. Searching in …


    Are there any plans to remove that limitation? An pointers to where in the
    code I might start to look if I want to enhance this on my own?

    Thanks,

    Ezra Epstein


  • Tom Lane

    #2
    Re: FEATURE REQUEST: let arrays support null values.

    "ezra epstein" <ee_newsgroup_p ost@prajnait.co m> writes:[color=blue]
    > I've stumbled against the inability to put null values within an array.
    > Are there any plans to remove that limitation?[/color]

    It's on the TODO list. I think Joe Conway has made noises about doing
    something about it, but I dunno if he expects to get to it during the
    7.5 development cycle or not.
    [color=blue]
    > An pointers to where in the code I might start to look if I want to
    > enhance this on my own?[/color]

    The array code is mostly in

    src/include/utils/array.h
    src/backend/utils/adt/arrayfuncs.c
    src/backend/utils/adt/array_userfuncs .c
    src/backend/utils/adt/arrayutils.c

    regards, tom lane

    ---------------------------(end of broadcast)---------------------------
    TIP 4: Don't 'kill -9' the postmaster

    Comment

    Working...