~ubuntu-branches/ubuntu/lucid/postgresql-8.4/lucid-proposed

« back to all changes in this revision

Viewing changes to src/backend/utils/adt/datetime.c

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2012-12-10 15:53:42 UTC
  • mfrom: (1.3.9)
  • Revision ID: package-import@ubuntu.com-20121210155342-3scm68xcxel275jb
Tags: 8.4.15-0ubuntu10.04
* New upstream bug fix release: (LP: #1088393)
  - Fix multiple bugs associated with "CREATE INDEX CONCURRENTLY"
    Fix "CREATE INDEX CONCURRENTLY" to use in-place updates when
    changing the state of an index's pg_index row. This prevents race
    conditions that could cause concurrent sessions to miss updating
    the target index, thus resulting in corrupt concurrently-created
    indexes.
    Also, fix various other operations to ensure that they ignore
    invalid indexes resulting from a failed "CREATE INDEX CONCURRENTLY"
    command. The most important of these is "VACUUM", because an
    auto-vacuum could easily be launched on the table before corrective
    action can be taken to fix or remove the invalid index.
  - See HISTORY/changelog.gz for details about other bug fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2168
2168
        while (*str != '\0' && nf < MAXDATEFIELDS)
2169
2169
        {
2170
2170
                /* skip field separators */
2171
 
                while (!isalnum((unsigned char) *str))
 
2171
                while (*str != '\0' && !isalnum((unsigned char) *str))
2172
2172
                        str++;
2173
2173
 
 
2174
                if (*str == '\0')
 
2175
                        return DTERR_BAD_FORMAT;                /* end of string after separator */
 
2176
 
2174
2177
                field[nf] = str;
2175
2178
                if (isdigit((unsigned char) *str))
2176
2179
                {