mirror of
https://github.com/postgres/postgres.git
synced 2025-12-07 12:02:30 +03:00
The cstring datatype can now be copied, passed around, etc. The typlen
value '-2' is used to indicate a variable-width type whose width is computed as strlen(datum)+1. Everything that looks at typlen is updated except for array support, which Joe Conway is working on; at the moment it wouldn't work to try to create an array of cstring.
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
SELECT p1.oid, p1.typname
|
||||
FROM pg_type as p1
|
||||
WHERE p1.typnamespace = 0 OR
|
||||
(p1.typlen <= 0 AND p1.typlen != -1) OR
|
||||
(p1.typlen <= 0 AND p1.typlen != -1 AND p1.typlen != -2) OR
|
||||
(p1.typtype not in ('b', 'c', 'd', 'p')) OR
|
||||
NOT p1.typisdefined OR
|
||||
(p1.typalign not in ('c', 's', 'i', 'd')) OR
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
SELECT p1.oid, p1.typname
|
||||
FROM pg_type as p1
|
||||
WHERE p1.typnamespace = 0 OR
|
||||
(p1.typlen <= 0 AND p1.typlen != -1) OR
|
||||
(p1.typlen <= 0 AND p1.typlen != -1 AND p1.typlen != -2) OR
|
||||
(p1.typtype not in ('b', 'c', 'd', 'p')) OR
|
||||
NOT p1.typisdefined OR
|
||||
(p1.typalign not in ('c', 's', 'i', 'd')) OR
|
||||
|
||||
Reference in New Issue
Block a user