[PgFoundry] Unsigned Data Types

Поиск
Список
Период
Сортировка
От Ryan Bradetich
Тема [PgFoundry] Unsigned Data Types
Дата
Msg-id e739902b0808142300j6f19ac9difa8fab753e568b9b@mail.gmail.com
обсуждение исходный текст
Ответы Re: [PgFoundry] Unsigned Data Types  (Decibel! <decibel@decibel.org>)
Список pgsql-hackers
Hello all,

Here is the first pass at the unsigned data type I have been working on.

I am planning on adding these to the September 2008 commitfest wiki page.
The unsigned data type is not targeted for core, but for the uint PgFoundry project.

The uint.c.gz file is the main source file for the uint1, uint2, and uint4 data types.
The uing.sql.gz file contains the SQL statements to add the unsigned data type to the database.
The pg_atoui.c.gz file is based off the function in the PostgreSQL source code but works for unsigned data types instead of signed data types.
The Makefile is used to build the unsigned data type shared library on Linux.

The tests.tar.gz is my unit test suit that I worked on to make sure the unsigned integer types worked as expected.

The tests cover cases like:
    * table creation with the unsigned integer types.
    * comparision operations.
    * INSERT statements (binary and text forms).
    * COPY statements (binary and text forms).
    * unique btree index support.

In addition to correctness issues, I would also appreciate feedback on best practices and portability concerns.

For example:
   I doubt my Makefiles are very portable.
   What is the proper solution to handle this?  pgxs?

Thanks,

- Ryan

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: proposal sql: labeled function params
Следующее
От: "Pavel Stehule"
Дата:
Сообщение: Re: proposal sql: labeled function params