1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-11 20:28:21 +03:00

Some optimizations by Volkan YAZICI <yazicivo@ttnet.net.tr>

This commit is contained in:
Teodor Sigaev
2006-05-10 11:39:12 +00:00
parent 10dd8df68e
commit c1f39437d0
2 changed files with 17 additions and 19 deletions

View File

@ -83,8 +83,6 @@ _int_same(PG_FUNCTION_ARGS)
if (avoid || bvoid)
return (avoid && bvoid) ? TRUE : FALSE;
SORT(a);
SORT(b);
na = ARRNELEMS(a);
nb = ARRNELEMS(b);
da = ARRPTR(a);
@ -94,7 +92,10 @@ _int_same(PG_FUNCTION_ARGS)
if (na == nb)
{
SORT(a);
SORT(b);
result = TRUE;
for (n = 0; n < na; n++)
if (da[n] != db[n])
{