This is quite a basic question about the path integral. In Polchinki's String Theory book, Chapter 2, he says:
Expectation values are defined by the path integral
$$\langle \mathscr{F}[X]\rangle=\int[dX] \exp(-S)\mathscr{F}[X],\tag{2.1.14}$$
where $\mathscr{F}[X]$ is any functional of $X$, such as a product of local operators.
Now I believe I have gotten something wrong. My issue is with the any functional part. If I recall what the path integral gives are time-ordered mean values, so that it would not give the mean of "any functional of $X$".
In fact, in Appendix A, Polchinski reviews the path integral. He derives this result, and in fact in Eq. (A.1.17) we see:
$$\int[dq]_{q_i,0}^{q_f,T}\exp (iS)q(t)q(t')=\langle q_f,T|\mathrm{T}[\hat{q}(t)\hat{q}(t')]|q_i,0\rangle\tag{A.1.17}.$$
So I confess I am a bit lost, but that's probably something very basic that I'm missing.
How to reconcille Polchinski's statement, Eq. (2.1.14), that we may get the expectation value of any functional of $X$ by that path integral, with the fact that the path integral actually computes time-ordered expectation values? Is there some way in which the path integral may, in fact, compute the expectation value of any functional?