I have created a type using the following statements:
CREATE TABLE blocks(objectid bigint NOT NULL, block varchar(4), res smallint);
SELECT AddGeometryColumn('blocks', 'shape', 4326, 'GEOMETRY', 2 );
sdelayer -o register -l blocks,shape -C ojbectid,SDE -e a -t PG_GEOMETRY -u sde -p sde -i esri_sde
Now, anytime I go to access that layer in ArcDesktop 10 tools I get the "Invalid Column Data Type" error. If I switch objectid to integer instead of a bigint it works fine. I also thought it might just be an issue with having the objectid field as bigint, but apparently if a bigint field is anywhere in the table I get the same error in ArcDesktop 10. I have tried setting SDE server parameter to allow INT64TYPES to TRUE, but that didn't help anything either so I set it back. Does ArcDeskop 10 not support fields that are bigint? If it does, how do I get this to work?