bugzilla-daemon at main.slony.info bugzilla-daemon at main.slony.info
Thu Oct 28 14:49:33 PDT 2010
http://www.slony.info/bugzilla/show_bug.cgi?id=162

           Summary: typenameTypeId() changes signatures
           Product: Slony-I
           Version: 2.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: low
         Component: slon
        AssignedTo: slony1-bugs at lists.slony.info
        ReportedBy: cbbrowne at ca.afilias.info
                CC: slony1-bugs at lists.slony.info
   Estimated Hours: 0.0


In PostgreSQL HEAD, the function typenameTypeId() has been refactored:

http://git.postgresql.org/gitweb?p=postgresql.git;a=commit;h=35670340f57d78d6ab023b1fb42fd81339f85d4c

"Split the old typenameTypeId() into two functions: A new typenameTypeId() that
returns only a type OID, and typenameTypeIdAndMod() that returns type OID and
typmod.  This isolates call sites better that actually care about the typmod."

postgres at cbbrowne [05:45:18] [~/slony1-engine.github/src/backend] [master *]
-> % make
gcc -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../.. -fpic
-I/var/lib/postgresql/dbs/postgresql-HEAD/include/
-I/var/lib/postgresql/dbs/postgresql-HEAD/include/server/  -c -o slony1_funcs.o
slony1_funcs.c
slony1_funcs.c: In function 'slon_quote_literal':
slony1_funcs.c:1030: warning: pointer targets in passing argument 1 of
'pg_mblen' differ in signedness
/var/lib/postgresql/dbs/postgresql-HEAD/include/server/mb/pg_wchar.h:379: note:
expected 'const char *' but argument is of type 'unsigned char *'
slony1_funcs.c: In function 'getClusterStatus':
slony1_funcs.c:1270: error: too many arguments to function 'typenameTypeId'
make: *** [slony1_funcs.o] Error 1

Some change is necessary, and presumably will include modifying autoconf
scripts to detect the change in API.

-- 
Configure bugmail: http://www.slony.info/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Slony1-bugs mailing list