Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
3d24e751
Commit
3d24e751
authored
Jan 19, 1998
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added code so SubLinks make it to optimizer.
parent
588867bd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
src/backend/parser/parse_expr.c
src/backend/parser/parse_expr.c
+7
-2
src/include/storage/s_lock.h
src/include/storage/s_lock.h
+2
-2
No files found.
src/backend/parser/parse_expr.c
View file @
3d24e751
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.
8 1998/01/19 05:06:18
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.
9 1998/01/19 05:48:36
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -277,12 +277,14 @@ transformExpr(ParseState *pstate, Node *expr, int precedence)
...
@@ -277,12 +277,14 @@ transformExpr(ParseState *pstate, Node *expr, int precedence)
{
{
Node
*
lexpr
=
transformExpr
(
pstate
,
lfirst
(
elist
),
precedence
);
Node
*
lexpr
=
transformExpr
(
pstate
,
lfirst
(
elist
),
precedence
);
Node
*
rexpr
=
lfirst
(
right_expr
);
Node
*
rexpr
=
lfirst
(
right_expr
);
TargetEntry
*
tent
=
(
TargetEntry
*
)
rexpr
;
Expr
*
op_expr
;
Expr
*
op_expr
;
op_expr
=
make_op
(
op
,
lexpr
,
r
expr
);
op_expr
=
make_op
(
op
,
lexpr
,
tent
->
expr
);
sublink
->
oper
=
lappend
(
sublink
->
oper
,
op_expr
->
oper
);
sublink
->
oper
=
lappend
(
sublink
->
oper
,
op_expr
->
oper
);
right_expr
=
lnext
(
right_expr
);
right_expr
=
lnext
(
right_expr
);
}
}
result
=
(
Node
*
)
expr
;
}
}
break
;
break
;
}
}
...
@@ -382,6 +384,9 @@ exprType(Node *expr)
...
@@ -382,6 +384,9 @@ exprType(Node *expr)
case
T_Param
:
case
T_Param
:
type
=
((
Param
*
)
expr
)
->
paramtype
;
type
=
((
Param
*
)
expr
)
->
paramtype
;
break
;
break
;
case
T_SubLink
:
type
=
BOOLOID
;
break
;
case
T_Ident
:
case
T_Ident
:
/* is this right? */
/* is this right? */
type
=
UNKNOWNOID
;
type
=
UNKNOWNOID
;
...
...
src/include/storage/s_lock.h
View file @
3d24e751
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.1
7 1998/01/17 23:33:14 scrappy
Exp $
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.1
8 1998/01/19 05:48:55 momjian
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -315,7 +315,7 @@ again:
...
@@ -315,7 +315,7 @@ again:
slock_t _res; \
slock_t _res; \
do \
do \
{ \
{ \
__asm__("
lock
xchgb %0,%1": "=q"(_res), "=m"(*lock):"0"(0x1)); \
__asm__("xchgb %0,%1": "=q"(_res), "=m"(*lock):"0"(0x1)); \
} while (_res != 0); \
} while (_res != 0); \
} while (0)
} while (0)
#endif
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment